We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def source = cpg.literal("20") def sink = cpg.call("sink").argument sink.reachableByFlows(source)
x = foo(20) sink(x)
y = 20 x = foo(y) sink(x)
For Sample 1, we obtain the following 2 flows:
and
For Sample 2, we obtain a single flow:
Sample 1 should not contain its second flow -- the one that jumps over the foo call directly to the assigned variable.
foo
Interestingly:
__builtin.int.foo
<unknownFullName>
The text was updated successfully, but these errors were encountered:
globalFromLiteral
Successfully merging a pull request may close this issue.
Setup
Query
Sample 1
Sample 2
Results
For Sample 1, we obtain the following 2 flows:
and
For Sample 2, we obtain a single flow:
Discussion
Sample 1 should not contain its second flow -- the one that jumps over the
foo
call directly to the assigned variable.Interestingly:
foo
has methodFullName__builtin.int.foo
foo
has methodFullName<unknownFullName>
The text was updated successfully, but these errors were encountered: