Eliminate some false positive results.
This commit is contained in:
parent
118731d8b8
commit
cb50787ec4
@ -53,7 +53,7 @@ predicate indexK_with_fixedarray(ClassTemplateInstantiation t, ArrayIndexCall ca
|
||||
t.getSimpleName() = "array" and
|
||||
idx = call.getArgument(0) and
|
||||
lowerBound(idx) >= 0 and
|
||||
upperBound(idx) < t.getTemplateArgument(1).(Literal).getValue().toInt()
|
||||
upperBound(idx) < lowerBound(t.getTemplateArgument(1))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user