Displaying path query results in VS Code: alerts doesn't do anything #274
-
I run a path query closely following the documentation for it, yet I can't seem to figure out how to display the path from source to sink in VS Code using the CodeQL extension. I imported the
Now according to the documentation the select clause should contain 4 columns It is mentioned I should drop down the 'Results' box and hit alerts, but that doesn't do anything. I'm able to click on 'nodes' and 'edges' though, but I can't make sense of what is displayed there and to which query result it is related (a lot of entries there). Is there something else I should do / could try? I'm using the coreutils mirror on github downloaded from lgtm.com Full query included below:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 29 replies
-
Did you add /**
* ...
* @kind path-problem
* ...
*/ to the start of your query? |
Beta Was this translation helpful? Give feedback.
-
I think your select clause doesn't follow the expectations. You probably want something like this: We should really display a better error here, rather than silently producing no alerts... |
Beta Was this translation helpful? Give feedback.
I think your select clause doesn't follow the expectations. You probably want something like this:
select condjump, address, condjump, "tainted by $@", address, address.toString()
. See also here for the full details.We should really display a better error here, rather than silently producing no alerts...