-
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
External predicate recording multiple values #19140
Comments
Hi @jghebre 👋🏻 Do you have a minimal example for where this happens? (I.e. combination of CSV data and queries.) Also, can you confirm that you are using the most recent version of CodeQL? That would help us troubleshoot this. |
Hi @mbg , Sure I cut down my libraries to a minimal example, I'm using the latest CodeQL, v2.20.7: Library for holding the csv data
Library for using the csv data in Dataflow
CWE-020 query with PatchDataflow library added
Example csv
query used to run
error message:
|
Thanks for that, @jghebre! That's really useful. I can confirm that I get the same error with your minimal example. I'll pass this on to the relevant engineering team. |
Hi,
I'm using an external predicate to read in csv data and apply these to the overrided predicate
step
inDataFlow::SharedFlowStep
. This is nice because it allows me to make changes to the entire Dataflow easily, which is what I want.This works, but for certain queries I get this error:
I'm pretty positive this is occurring due to another file using
DataFlow::SharedFlowStep::step
which hits the external predicate more than once and causes errors.I'm not sure if there is a way around this by perhaps:
DataFlow::SharedFlowStep::step
to run lastor some other fix.
Thanks!
The text was updated successfully, but these errors were encountered: