Skip to content

Commit 7df09f3

Browse files
committed
[DIFF-INFORMED] C++: SqlTainted
1 parent 36d43a4 commit 7df09f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ module SqlTaintedConfig implements DataFlow::ConfigSig {
5454
sql.barrierSqlArgument(input, _)
5555
)
5656
}
57+
58+
predicate observeDiffInformedIncrementalMode() { any() }
59+
60+
Location getASelectedSinkLocation(DataFlow::Node sink) {
61+
exists(Expr taintedArg | result = taintedArg.getLocation() | taintedArg = asSinkExpr(sink))
62+
}
5763
}
5864

5965
module SqlTainted = TaintTracking::Global<SqlTaintedConfig>;

0 commit comments

Comments
 (0)