Skip to content

Commit 2900785

Browse files
committed
C++: SqlTainted
1 parent 7fe3ccd commit 2900785

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-089/SqlTainted.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ module SqlTaintedConfig implements DataFlow::ConfigSig {
5555
)
5656
}
5757

58-
predicate observeDiffInformedIncrementalMode() {
59-
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 74 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-089/SqlTainted.ql@77:8:77:17)
58+
predicate observeDiffInformedIncrementalMode() { any() }
59+
60+
Location getASelectedSinkLocation(DataFlow::Node sink) {
61+
exists(Expr taintedArg | result = taintedArg.getLocation() | taintedArg = asSinkExpr(sink))
6062
}
6163
}
6264

0 commit comments

Comments
 (0)