We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getMaxIntValue
bitSize
1 parent 39eeed9 commit 0ed0145Copy full SHA for 0ed0145
1 file changed
go/ql/lib/semmle/go/security/IncorrectIntegerConversionLib.qll
@@ -5,7 +5,7 @@ import go
5
* is true, unsigned otherwise) with `bitSize` bits.
6
*/
7
float getMaxIntValue(int bitSize, boolean isSigned) {
8
- bitSize in [8, 16, 32] and
+ bitSize in [8, 16, 32, 64] and
9
(
10
isSigned = true and result = 2.pow(bitSize - 1) - 1
11
or
0 commit comments