Skip to content

Commit 0ed0145

Browse files
committed
Fix getMaxIntValue to accept bitSize 64
1 parent 39eeed9 commit 0ed0145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/lib/semmle/go/security/IncorrectIntegerConversionLib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import go
55
* is true, unsigned otherwise) with `bitSize` bits.
66
*/
77
float getMaxIntValue(int bitSize, boolean isSigned) {
8-
bitSize in [8, 16, 32] and
8+
bitSize in [8, 16, 32, 64] and
99
(
1010
isSigned = true and result = 2.pow(bitSize - 1) - 1
1111
or

0 commit comments

Comments
 (0)