Skip to content

Commit 1e40445

Browse files
committed
C++: CleartextFileWrite
1 parent 21df636 commit 1e40445

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ module FromSensitiveConfig implements DataFlow::ConfigSig {
3232
node.asExpr().getUnspecifiedType() instanceof IntegralType
3333
}
3434

35-
predicate observeDiffInformedIncrementalMode() {
36-
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 84 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-311/CleartextFileWrite.ql@87:8:87:8), Column 5 does not select a source or sink originating from the flow call on line 84 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-311/CleartextFileWrite.ql@88:91:88:96)
35+
predicate observeDiffInformedIncrementalMode() { any() }
36+
37+
Location getASelectedSinkLocation(DataFlow::Node sink) {
38+
exists(FileWrite w | result = w.getLocation() | isSinkImpl(sink, w, _))
3739
}
3840
}
3941

0 commit comments

Comments
 (0)