Skip to content

Commit b09f370

Browse files
committed
C++: TaintedCondition
1 parent b54fad7 commit b09f370

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-807/TaintedCondition.ql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ module Config implements DataFlow::ConfigSig {
6666
)
6767
}
6868

69-
predicate observeDiffInformedIncrementalMode() {
70-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 7 does not select a source or sink originating from the flow call on line 86 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-807/TaintedCondition.ql@88:3:88:7)
69+
predicate observeDiffInformedIncrementalMode() { any() }
70+
71+
Location getASelectedSinkLocation(DataFlow::Node sink) {
72+
result = sink.getLocation()
73+
or
74+
exists(Expr raise | result = raise.getLocation() |
75+
sensitiveCondition([sink.asExpr(), sink.asIndirectExpr()], raise)
76+
)
7177
}
7278
}
7379

0 commit comments

Comments
 (0)