Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit ed469a3

Browse files
committed
Fix mistake in test
1 parent 30f1762 commit ed469a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func testBoundsChecking(input string) {
281281
if parsed > 42 {
282282
_ = uint16(parsed) // NOT OK
283283
}
284-
if parsed < 5 {
284+
if parsed > 5 {
285285
return
286286
}
287287
_ = uint8(parsed) // OK

0 commit comments

Comments
 (0)