Skip to content

Commit c7da1c9

Browse files
committed
Use example that compiles on 32-bit arch
1 parent be468fe commit c7da1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/test/query-tests/Security/CWE-681/IncorrectIntegerConversion.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ func testBoundsChecking(input string) {
264264
_ = int16(parsed)
265265
}
266266
}
267-
if parsed <= math.MaxUint32 {
268-
_ = uint32(parsed)
267+
if parsed <= math.MaxUint16 {
268+
_ = uint16(parsed)
269269
}
270270
}
271271
{

0 commit comments

Comments
 (0)