Help with isAdditionalFlowStep for Taint Flow Involving Pointers #16620
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. |
Beta Was this translation helpful? Give feedback.
-
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
state
here: 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
state
parameter. However, it does not consider the fields of thestate
parameter as tainted, which is something we need for our use case. We have a feeling our issue is with theisAdditionalFlowStep
predicate. How can we modify this so that fields of a pointer are considered tainted? Thanks in advance for your help!Beta Was this translation helpful? Give feedback.
All reactions