Skip to content

Commit 5b9e37c

Browse files
committed
[DIFF-INFORMED] C++: TaintedCondition
1 parent 0c636dd commit 5b9e37c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ module Config implements DataFlow::ConfigSig {
6565
iFrom1 != iFrom2
6666
)
6767
}
68+
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+
)
77+
}
6878
}
6979

7080
module Flow = TaintTracking::Global<Config>;

0 commit comments

Comments
 (0)