mirror of
https://github.com/github/codeql.git
synced 2026-03-01 13:23:49 +01:00
Fix cartesian product
This commit is contained in:
@@ -174,6 +174,7 @@ private Expr firstElementOf(Expr arr) {
|
||||
exists(CommandArgArrayImmutableFirst caa | arr = caa.getAUse() | result = caa.getFirstElement())
|
||||
or
|
||||
exists(MethodAccess ma, Method m |
|
||||
arr = ma and
|
||||
ma.getMethod() = m and
|
||||
m.getDeclaringType().hasQualifiedName("java.util", "Arrays") and
|
||||
m.hasName("copyOf") and
|
||||
|
||||
Reference in New Issue
Block a user