Skip to content

Commit

Permalink
Merge pull request #18737 from jbj/NumericCastTaintedQuery-selectedLo…
Browse files Browse the repository at this point in the history
…cation

Java: precise diff-informed NumericCastTainted
  • Loading branch information
jbj authored Feb 11, 2025
2 parents 5a49390 + 71c078d commit 7644012
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
}
}

/**
Expand Down

0 comments on commit 7644012

Please sign in to comment.