mirror of
https://github.com/github/codeql.git
synced 2026-03-05 23:26:51 +01:00
C++: Fix upper bound detection in default taint flow
This commit is contained in:
@@ -81,7 +81,7 @@ class TaintedAllocationSizeConfiguration extends TaintTracking::Configuration {
|
||||
)
|
||||
or
|
||||
exists(Variable checkedVar |
|
||||
readsVariable(node.asInstruction(), checkedVar) and
|
||||
node.asExpr().(VariableAccess).getTarget() = checkedVar and
|
||||
hasUpperBoundsCheck(checkedVar)
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user