Skip to content

Commit 87889d6

Browse files
committed
C++: TaintedPath
1 parent 0d18ce4 commit 87889d6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-022/TaintedPath.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ module TaintedPathConfig implements DataFlow::ConfigSig {
9494
isSink(node)
9595
}
9696

97-
predicate observeDiffInformedIncrementalMode() {
98-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 selects sink.asIndirectArgument (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-022/TaintedPath.ql@108:8:108:17)
97+
predicate observeDiffInformedIncrementalMode() { any() }
98+
99+
Location getASelectedSinkLocation(DataFlow::Node sink) {
100+
result = sink.asIndirectArgument().getLocation()
99101
}
100102
}
101103

0 commit comments

Comments
 (0)