Steps in Global Dataflow Paths [python] #9165
-
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.
Replies: 1 comment 3 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
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
.