mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
[DIFF-INFORMED] C++: OverflowDestination
This commit is contained in:
@@ -82,6 +82,16 @@ module OverflowDestinationConfig implements DataFlow::ConfigSig {
|
|||||||
nodeIsBarrierEqualityCandidate(node, access, checkedVar)
|
nodeIsBarrierEqualityCandidate(node, access, checkedVar)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
|
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
|
||||||
|
|
||||||
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
|
exists(FunctionCall fc | result = fc.getLocation() |
|
||||||
|
sourceSized(fc, sink.asIndirectConvertedExpr())
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module OverflowDestination = TaintTracking::Global<OverflowDestinationConfig>;
|
module OverflowDestination = TaintTracking::Global<OverflowDestinationConfig>;
|
||||||
|
|||||||
Reference in New Issue
Block a user