-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Whether the codeql result contains function call chain information. #18796
Comments
Is the query of https://codeql.github.com/docs/writing-codeql-queries/creating-path-queries/ has general information about path-problem queries, or see the many standard path-problem queries for examples of how the data-flow library produces the flow-graph information needed. |
Hi @smowton , thanks! The problem is resolved, but Why do multiple same location elements exist in the result file?
rule content:
|
It's because at a technical level the data-flow graph has more than one node representing the call, which are both attributes to the same location in source. I'll ask the C/C++ team if it's possible to suppress one in the path description; however this isn't specific to this particular query, so there's nothing wrong with your CodeQL. |
test code:
running rule:
fopen-flow-from-getenv.ql
but results file don't contain the function call chain, results like this:
The text was updated successfully, but these errors were encountered: