Steps in Global Dataflow Paths [python] #9165
Answered
by
intrigus-lgtm
ppashakhanloo
asked this question in
Q&A
|
When a global dataflow query indicates that there is some path between source N and sink M, is there a way to get the individual dataflow steps that comprise the path between N and M? |
Answered by
intrigus-lgtm
May 15, 2022
Replies: 1 comment 3 replies
|
You can use |
3 replies
Answer selected by
ppashakhanloo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
DataFlow::PathNodes (andhasFlowPath) instead of ordinaryDataFlow::Nodes and then use the getASuccessor function to get the successor of the source N and so on.But as far as I know, CodeQL will aggressively prune steps for performance reasons, i.e., some steps of the flow are not represented as
PathNodes and will not be returned bygetASuccessor.