Skip to content

[C++/C] Local Data Flow and Global Data Flow #377

Answered by MathiasVP
irfanariq asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @irfanariq,

  1. There's a difference between the precision of the analysis. For instance, global dataflow has to deal with complicated issues like matching up function call entry and return points. This has both a precision and a performance impact.
    You can read more about the difference between local and global dataflow here: https://codeql.github.com/docs/codeql-language-guides/analyzing-data-flow-in-cpp/#analyzing-data-flow-in-c-and-c.

  2. As it happens, we previously had a workshop on creating just this kind of query :) You can watch it here:
    https://www.youtube.com/watch?v=eAjecQrfv3o.

Your query looks correct. The reason you're not finding the result in test_free_in_other_func is b…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@irfanariq
Comment options

@MathiasVP
Comment options

@irfanariq
Comment options

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