Skip to content

Commit 2bbebf5

Browse files
committed
C++: DecompressionBombs
1 parent 0601afa commit 2bbebf5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ module DecompressionTaintConfig implements DataFlow::ConfigSig {
2929
any(DecompressionFlowStep s).isAdditionalFlowStep(node1, node2)
3030
}
3131

32-
predicate observeDiffInformedIncrementalMode() {
33-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 5 does not select a source or sink originating from the flow call on line 38 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/experimental/Security/CWE/CWE-409/DecompressionBombs.ql@39:87:39:88)
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))
3438
}
3539
}
3640

0 commit comments

Comments
 (0)