Skip to content

Commit 448a1ea

Browse files
committed
[DIFF-INFORMED] C++: OverflowDestination
1 parent 43e99d0 commit 448a1ea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cpp/ql/src/Critical/OverflowDestination.ql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ module OverflowDestinationConfig implements DataFlow::ConfigSig {
8282
nodeIsBarrierEqualityCandidate(node, access, checkedVar)
8383
)
8484
}
85+
86+
predicate observeDiffInformedIncrementalMode() { any() }
87+
88+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
89+
90+
Location getASelectedSinkLocation(DataFlow::Node sink) {
91+
exists(FunctionCall fc | result = fc.getLocation() |
92+
sourceSized(fc, sink.asIndirectConvertedExpr())
93+
)
94+
}
8595
}
8696

8797
module OverflowDestination = TaintTracking::Global<OverflowDestinationConfig>;

0 commit comments

Comments
 (0)