Help with isAdditionalFlowStep for Taint Flow Involving Pointers #16620
Unanswered
sei-yhindka
asked this question in
Q&A
Replies: 1 comment 7 replies
|
If I understand correctly you would like to add additional taint steps for field accesses that are performed on a tainted qualifier. I see you used an To debug things like this I'd recommend using the "quick evaluation" feature from QL for VSCode. This feature allows you to select a predicate or expression, right click, to evaluate and inspect the results. This makes it easier to figure out where you are unexpectedly losing or gaining results. |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello CodeQL Team,
We are trying to track taint flow of a pointer and its fields through a program. Specifically, we are trying to track the taint of the function parameter named
statehere: https://github.com/ggerganov/whisper.cpp/blob/master/whisper.cpp#L7159. Here is the query we are using:Currently, this query does track taint through all uses of the
stateparameter. However, it does not consider the fields of thestateparameter as tainted, which is something we need for our use case. We have a feeling our issue is with theisAdditionalFlowSteppredicate. How can we modify this so that fields of a pointer are considered tainted? Thanks in advance for your help!All reactions