Skip to content

Determine if a function is passed to a function before it's being passed to another function. #253

Answered by owen-mc
mzfr asked this question in Q&A
Discussion options

You must be logged in to vote

You would write a CodeQL query for this kind of thing using the taint tracking library. The concept you are looking for is a SanitizerGuard. There's a simpler concept called a Sanitizer, which it is probalby easier to learn about first.

I think questions about CodeQL might get a better response in the codeql repo, where I see you've already posted a different question.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by criemen
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants