Skip to content

Commit bad3e3e

Browse files
committed
C++: ImproperNullTerminationTainted
1 parent 4e3f4bf commit bad3e3e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cpp/ql/src/Security/CWE/CWE-170/ImproperNullTerminationTainted.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ private module Config implements DataFlow::ConfigSig {
4444

4545
predicate isSink(DataFlow::Node sink) { isSink(sink, _) }
4646

47-
predicate observeDiffInformedIncrementalMode() {
48-
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 52 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-170/ImproperNullTerminationTainted.ql@55:8:55:9)
49-
}
47+
predicate observeDiffInformedIncrementalMode() { any() }
5048

5149
Location getASelectedSinkLocation(DataFlow::Node sink) {
52-
none() // TODO: Make sure that this sink location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 52 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-170/ImproperNullTerminationTainted.ql@55:8:55:9)
50+
exists(VariableAccess va | result = va.getLocation() | isSink(sink, va))
5351
}
5452
}
5553

0 commit comments

Comments
 (0)