Skip to content

Commit e152b9b

Browse files
committed
Java/ImproperValidationOfArrayConstructionFlow
java/ql/src/Security/CWE/CWE-129/ImproperValidationOfArrayConstruction.ql
1 parent be2c824 commit e152b9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module ImproperValidationOfArrayConstructionConfig implements DataFlow::ConfigSi
1818
predicate observeDiffInformedIncrementalMode() { any() }
1919

2020
Location getASelectedSinkLocation(DataFlow::Node sink) {
21+
result = sink.getLocation()
22+
or
2123
exists(ArrayCreationExpr arrayCreation, CheckableArrayAccess arrayAccess |
2224
result = [arrayCreation, arrayAccess.getIndexExpr()].getLocation() and
2325
arrayAccess.canThrowOutOfBoundsDueToEmptyArray(sink.asExpr(), arrayCreation)

0 commit comments

Comments
 (0)