Merge pull request #18737 from jbj/NumericCastTaintedQuery-selectedLocation

Java: precise diff-informed NumericCastTainted
This commit is contained in:
Jonas Jensen
2025-02-11 15:33:28 +01:00
committed by GitHub

View File

@@ -104,6 +104,13 @@ module NumericCastFlowConfig implements DataFlow::ConfigSig {
predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
predicate observeDiffInformedIncrementalMode() { any() }
Location getASelectedSinkLocation(DataFlow::Node sink) {
exists(NumericNarrowingCastExpr cast |
cast.getExpr() = sink.asExpr() and
result = cast.getLocation()
)
}
}
/**