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? |
Beta Was this translation helpful? Give feedback.
Answered by
intrigus-lgtm
May 15, 2022
Replies: 1 comment 3 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
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::PathNode
s (andhasFlowPath
) instead of ordinaryDataFlow::Node
s 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
PathNode
s and will not be returned bygetASuccessor
.