You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Joern query couldn't find a flow while CodeQL finds it. When i try expanding source beyond cpg.method.parameter, waits forever with errors.
Note: I'm pretty new to joern, so do let me know if my queries are incorrect as well as if you need additional info.
torque59
changed the title
[Bug] Joern query not able to detect flow and on expanding scope waits forever with errors.
[Bug] [Java] Joern query not able to detect flow and on expanding scope waits forever with errors.
Jan 28, 2025
Describe the bug
Joern query couldn't find a flow while CodeQL finds it. When i try expanding source beyond cpg.method.parameter, waits forever with errors.
Note: I'm pretty new to joern, so do let me know if my queries are incorrect as well as if you need additional info.
To Reproduce
Steps to reproduce the behavior:
def sink = cpg.call(".*executeQuery.*").lineNumber(95)
def source = cpg.method.parameter ++ cpg.identifier ++ cpg.call.argument
sink.reachableByFlows(source).p
Error Output: https://gist.github.com/torque59/c01a1268522cf9adf106ab5a28c6d390 and this waits forever (waited for an hour) and then manually killed it.
Expected behavior
Able to detect a flow. The flow was verified with CodeQL.
Note: The flow in CodeQL is limited to this particular resource, but i'm trying to find all sources flowing to the sink, hence the broader source.
Screenshots
N/A
Desktop (please complete the following information):
Ubuntu-2404-noble-amd64-base
Version: 4.0.227
openjdk version "17.0.13" 2024-10-15
Additional context
N/A
The text was updated successfully, but these errors were encountered: