[RESOLVED] How do I match the contructor? #8416
Unanswered
CaledoniaProject
asked this question in
Q&A
Replies: 3 comments 4 replies
-
I think this is because override predicate isSink(DataFlow::Node sink) {
exists(Call call, Callable callable |
sink.asExpr() = call.getAnArgument() and
call.getCallee() = callable and
(
(
callable.hasName("exec") and
callable.getDeclaringType().hasQualifiedName("java.lang", "Runtime")
)
or
(
callable.hasName("ProcessBuilder") and
callable.getDeclaringType().hasQualifiedName("java.lang", "ProcessBuilder")
)
)
)
} ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It worked.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm using
To match
Because |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm still learning codeql by creating basic queries
The query above works for this one
But not ProcessBuilder constructor:
What was wrong?
Beta Was this translation helpful? Give feedback.
All reactions