Skip to content

Commit 7cbfa8e

Browse files
committed
C++: ArithmeticTainted
1 parent bad3e3e commit 7cbfa8e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-190/ArithmeticTainted.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ module Config implements DataFlow::ConfigSig {
107107
)
108108
}
109109

110-
predicate observeDiffInformedIncrementalMode() {
111-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 116 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-190/ArithmeticTainted.ql@120:8:120:8)
110+
predicate observeDiffInformedIncrementalMode() { any() }
111+
112+
Location getASelectedSinkLocation(DataFlow::Node sink) {
113+
exists(Expr e | result = e.getLocation() | isSink(sink, _, e))
112114
}
113115
}
114116

0 commit comments

Comments
 (0)