Skip to content

CodeQl Java to detect flows from some input to a Class member #12744

Answered by MathiasVP
yuval-piiano asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yuval-piiano,

That isSink definition looks right to me. Of course, you still need to restrict the write to be a write to the myField field, but if you're getting 0 results with this definition already it leads me to think something else is wrong.

Have you read the "Checking sources and sinks" section of https://codeql.github.com/docs/writing-codeql-queries/debugging-data-flow-queries-using-partial-flow/#checking-sources-and-sinks?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yuval-piiano
Comment options

Answer selected by yuval-piiano
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