Skip to content

Commit cec225d

Browse files
committed
[DIFF-INFORMED] C++: OverflowDestination
1 parent b3db51e commit cec225d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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)