-
Notifications
You must be signed in to change notification settings - Fork 1.5k
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
Java: control-flow paths #17457
Comments
Hi again @KylerKatz 👋🏻 Queries of type To then understand where your query goes wrong, the first step would be to identify where the problem is by starting with the smallest components involved and then working your way up. For example, if you query all instances of Also, query metadata should normally be at the very top of the file, above the import statements. |
Hello @mbg, Thank you for all your help. I have broken the problem down and done some quick evaluations. Using this example,
SensitiveMethodCallI get these results Which lines up with the data that I have in my YML file
So ControlFlowPathLooking at this, it seems to almost be alright
4 & 5 correspond to their own self use, however, there should be one starting at Also, I am still looking for a way to get the actual path. Something like this. Is this possible for control flow? Also, here is my updated query for reference
Thank you once again for your help. |
Hello,
I am trying to use CodeQL to get the control flow of a program. More specifically I want to get the control flow into methods that I have marked as sensitive in a classes named
SensitiveMethodCall
. The goal is to parse the results to get the path. However, right now I am not generating a path. It is hard to tell if a path isn't being generated because of the query itself (I am used to using dataflow, so this is new to me) or if it has to do with this errorAll of the examples I see on this link have to deal with dataflow and not control flow, so I am having trouble figuring out what I am doing wrong to get the correct output. Here is my query.
Any help would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: