Skip to content

Commit d89aa0f

Browse files
committed
C++/CleartextBufferWrite
1 parent 17b261a commit d89aa0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ module ToBufferConfig implements DataFlow::ConfigSig {
5151
predicate observeDiffInformedIncrementalMode() { any() }
5252

5353
Location getASelectedSinkLocation(DataFlow::Node sink) {
54-
exists(SensitiveBufferWrite w | result = w.getLocation() | isSinkImpl(sink, w))
54+
exists(SensitiveBufferWrite w | result = [w.getLocation(), sink.getLocation()] |
55+
isSinkImpl(sink, w)
56+
)
5557
}
5658
}
5759

0 commit comments

Comments
 (0)