Skip to content

Commit fd0d513

Browse files
committed
C++: CleartextBufferWrite
1 parent a6046f3 commit fd0d513

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-311/CleartextBufferWrite.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ module ToBufferConfig implements DataFlow::ConfigSig {
4848

4949
predicate isSink(DataFlow::Node sink) { isSinkImpl(sink, _) }
5050

51-
predicate observeDiffInformedIncrementalMode() {
52-
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 62 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-311/CleartextBufferWrite.ql@65:8:65:8)
51+
predicate observeDiffInformedIncrementalMode() { any() }
52+
53+
Location getASelectedSinkLocation(DataFlow::Node sink) {
54+
exists(SensitiveBufferWrite w | result = w.getLocation() | isSinkImpl(sink, w))
5355
}
5456
}
5557

0 commit comments

Comments
 (0)