mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
C++: Fix upper bound detection in default taint flow
This commit is contained in:
@@ -175,7 +175,7 @@ private module Cached {
|
||||
cached
|
||||
predicate nodeIsBarrier(DataFlow::Node node) {
|
||||
exists(Variable checkedVar |
|
||||
readsVariable(node.asInstruction(), checkedVar) and
|
||||
node.asExpr().(VariableAccess).getTarget() = checkedVar and
|
||||
hasUpperBoundsCheck(checkedVar)
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user