Skip to content

Commit e382cb5

Browse files
committed
[DIFF-INFORMED] C++: DecompressionBombs
1 parent fabdf99 commit e382cb5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-409/DecompressionBombs.ql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ module DecompressionTaintConfig implements DataFlow::ConfigSig {
2828
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
2929
any(DecompressionFlowStep s).isAdditionalFlowStep(node1, node2)
3030
}
31+
32+
predicate observeDiffInformedIncrementalMode() { any() }
33+
34+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
35+
36+
Location getASelectedSinkLocation(DataFlow::Node sink) {
37+
exists(FunctionCall fc | result = [sink.getLocation(), fc.getLocation()] | isSink(fc, sink))
38+
}
3139
}
3240

3341
module DecompressionTaint = TaintTracking::Global<DecompressionTaintConfig>;

0 commit comments

Comments
 (0)