Skip to content

Commit f3098e7

Browse files
committed
[DIFF-INFORMED] C++: UnboundedWrite
1 parent 7df09f3 commit f3098e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ module Config implements DataFlow::ConfigSig {
124124
// Block flow if the node is guarded by any <, <= or = operations.
125125
node = DataFlow::BarrierGuard<lessThanOrEqual/3>::getABarrierNode()
126126
}
127+
128+
predicate observeDiffInformedIncrementalMode() { any() }
129+
130+
Location getASelectedSinkLocation(DataFlow::Node sink) {
131+
exists(BufferWrite bw | result = bw.getLocation() | isSink(sink, bw, _))
132+
}
127133
}
128134

129135
module Flow = TaintTracking::Global<Config>;

0 commit comments

Comments
 (0)