Skip to content

Taint tracking Graph chart ? #14747

Answered by aeisenberg
Sim4n6 asked this question in Q&A
Nov 10, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

The CodeQL CLI can output in dot file format. See the help in codeql datbase analyze --help. I think this is what you're asking for. When running the command, use the --format=dot. The results can be viewed by any Graphviz viewer.

The caveat is that the query you are running needs to be @kind graph and have a specific format. See #7437 for more info. This is an internal feature, so it's not well documented.

When using the feature be careful that the graph you are creating is small since it's easy to generate something that is too large to visualize. Usually, we try to limit the scope to a single file or function.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Sim4n6
Comment options

Answer selected by Sim4n6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants