mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Java/NumericCastTaintedQuery
java/ql/src/Security/CWE/CWE-681/NumericCastTainted.ql
This commit is contained in:
@@ -106,8 +106,9 @@ module NumericCastFlowConfig implements DataFlow::ConfigSig {
|
|||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
exists(NumericNarrowingCastExpr cast |
|
exists(NumericNarrowingCastExpr cast | cast.getExpr() = sink.asExpr() |
|
||||||
cast.getExpr() = sink.asExpr() and
|
result = sink.getLocation()
|
||||||
|
or
|
||||||
result = cast.getLocation()
|
result = cast.getLocation()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user