Skip to content

Commit 4e3f4bf

Browse files
committed
C++: UnboundedWrite
1 parent e00ed39 commit 4e3f4bf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ module Config implements DataFlow::ConfigSig {
125125
node = DataFlow::BarrierGuard<lessThanOrEqual/3>::getABarrierNode()
126126
}
127127

128-
predicate observeDiffInformedIncrementalMode() {
129-
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 149 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-120/UnboundedWrite.ql@152:8:152:9)
128+
predicate observeDiffInformedIncrementalMode() { any() }
129+
130+
Location getASelectedSinkLocation(DataFlow::Node sink) {
131+
exists(BufferWrite bw | result = bw.getLocation() | isSink(sink, bw, _))
130132
}
131133
}
132134

0 commit comments

Comments
 (0)