Skip to content

Commit 49a3e20

Browse files
committed
update cs/index-out-of-bounds to match javascript/go
1 parent 52171d6 commit 49a3e20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

csharp/ql/src/Likely Bugs/Collections/ContainerLengthCmpOffByOne.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,5 @@ where
6464
validGuard.controls(array, index) and
6565
validGuard.guards(indexAccess, _)
6666
)
67-
select incorrectGuard,
68-
"Off-by-one index comparison against length leads to possible out of bounds $@.", ea,
69-
ea.toString()
67+
select incorrectGuard, "Off-by-one index comparison against length may lead to out-of-bounds $@.",
68+
ea, ea.toString()

0 commit comments

Comments
 (0)