Skip to content

Commit cb50787

Browse files
Eliminate some false positive results.
1 parent 118731d commit cb50787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/codeql-queries/exiv2-cpp-queries/unsafe_vector_access.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ predicate indexK_with_fixedarray(ClassTemplateInstantiation t, ArrayIndexCall ca
5353
t.getSimpleName() = "array" and
5454
idx = call.getArgument(0) and
5555
lowerBound(idx) >= 0 and
56-
upperBound(idx) < t.getTemplateArgument(1).(Literal).getValue().toInt()
56+
upperBound(idx) < lowerBound(t.getTemplateArgument(1))
5757
)
5858
}
5959

0 commit comments

Comments
 (0)