Skip to content

Commit 9baf2b9

Browse files
Fix cartesian product
1 parent abb1731 commit 9baf2b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/src/semmle/code/java/security/CommandArguments.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ private Expr firstElementOf(Expr arr) {
174174
exists(CommandArgArrayImmutableFirst caa | arr = caa.getAUse() | result = caa.getFirstElement())
175175
or
176176
exists(MethodAccess ma, Method m |
177+
arr = ma and
177178
ma.getMethod() = m and
178179
m.getDeclaringType().hasQualifiedName("java.util", "Arrays") and
179180
m.hasName("copyOf") and

0 commit comments

Comments
 (0)