Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QueryDB][docs] Fix comment in UseAfterFree query #5113

Merged

Conversation

HamzaMouhcine
Copy link
Contributor

In the file querydb/src/main/scala/io/joern/scanners/c/UseAfterFree.scala, the free-follows-value-reuse query has a comment in the "the query does not match" examples. The comment states that the return x is not post-dominated by the free call, I believe this is not what the author meant as this statement is not relevant to what the query is doing. This could confuse users. I believe the author wanted to write the following comment instead return x doesn't post-dominate the free call.

Copy link
Contributor

@maltek maltek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, your analysis seems exactly right.

@maltek maltek merged commit b1fb89d into joernio:master Nov 19, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants