Sync ImproperValidationOfArrayIndexLocalQuery

This commit is contained in:
Ed Minnix
2023-10-11 17:07:31 -04:00
parent 69531b9f7c
commit f1886320e5

View File

@@ -13,6 +13,10 @@ module ImproperValidationOfArrayIndexLocalConfig implements DataFlow::ConfigSig
predicate isSink(DataFlow::Node sink) {
any(CheckableArrayAccess caa).canThrowOutOfBounds(sink.asExpr())
}
predicate isBarrier(DataFlow::Node node) { node.getType() instanceof BooleanType }
predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
}
/**