Skip to content

A condition in If CodeQL formulas that requires comparison of different types #10618

Answered by yoff
Sim4n6 asked this question in Q&A
Discussion options

You must be logged in to vote

Could you describe what you are trying to achieve overall? It looks like you might want one data flow query for the case sink = A with sources being None and the empty list, and another for the case sink = B. But I am not sure when the case sink = B is supposed to kick in, since the first case also includes C (random stuff).

If it is all purely syntactic, you could use AstNode as the common type...

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Sim4n6
Comment options

@tausbn
Comment options

@Sim4n6
Comment options

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