Skip to content

Commit 2756e82

Browse files
committed
C++/UnboundedWrite
1 parent a4ac039 commit 2756e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-120/UnboundedWrite.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module Config implements DataFlow::ConfigSig {
128128
predicate observeDiffInformedIncrementalMode() { any() }
129129

130130
Location getASelectedSinkLocation(DataFlow::Node sink) {
131-
exists(BufferWrite bw | result = bw.getLocation() | isSink(sink, bw, _))
131+
exists(BufferWrite bw | result = [bw.getLocation(), sink.getLocation()] | isSink(sink, bw, _))
132132
}
133133
}
134134

0 commit comments

Comments
 (0)