Skip to content

Dataflow queries identifying flow into struct fields (Golang) #14804

You must be logged in to vote

Use Write.writesField to define your sink instead -- e.g.

additional predicate writeIsSink(DataFlow::Node sink, Write write) {

You can also use the first argument of writesField to characterise the qualifier that is written to -- e.g.

exists(Write w, DataFlow::Node base, Field f | w.writesField(base, f, pred) |
-- but generally the qualified name of the written field will be enough.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@smowton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants