Skip to content

Commit f188632

Browse files
committed
Sync ImproperValidationOfArrayIndexLocalQuery
1 parent 69531b9 commit f188632

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/lib/semmle/code/java/security/ImproperValidationOfArrayIndexLocalQuery.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ module ImproperValidationOfArrayIndexLocalConfig implements DataFlow::ConfigSig
1313
predicate isSink(DataFlow::Node sink) {
1414
any(CheckableArrayAccess caa).canThrowOutOfBounds(sink.asExpr())
1515
}
16+
17+
predicate isBarrier(DataFlow::Node node) { node.getType() instanceof BooleanType }
18+
19+
predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
1620
}
1721

1822
/**

0 commit comments

Comments
 (0)