Output all the possible paths for the path query #20893
Replies: 3 comments
-
|
In general a |
Beta Was this translation helpful? Give feedback.
-
|
Note that if there are particular points that you want the path to go through then you can use flow states in your data flow config so that you only find paths which go through those points. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you all! That answers my question! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m trying to select complete call chains in a C CodeQL database using a simple path query. In particular, I want to get all possible paths from function A to function D, including a chain like
A -> B -> C -> Das explicit path steps in the results.However, it looks like CodeQL is doing some kind of optimization and only shows some paths, not all possible ones.
I’ve verified that all the individual edges exist (
A -> B,B -> C,C -> D), and that the chainB -> C -> Dcan be found. But when I query from A to D, the path viewer does not show the fullA -> B -> C -> Dchain. Instead, I only see a shorter/alternative path (likeA->B->E->F->G->...->D).Is there a way to get CodeQL to enumerate all valid paths between two functions, instead of just one “representative” path? Or my understanding is completely wrong.
Here is a simplified version of my query:
Beta Was this translation helpful? Give feedback.
All reactions