-
I have this verification to be done using the CodeQL formulas from DataFlow::Node sink, DataFlow::Node arg
where
if
arg instanceof None
or
arg instanceof ListObject and arg.(ListObject).getLength() = 0
or
arg = C
then sink = A
else sink = B
)
select sink, "sink" + sink.getLocation() I wonder how to guess a common CodeQL type that would fit Sorry guys if I ask too many questions in here, but I love CodeQL and I'm a bit lost... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
To be more precise
any help is a welcome ? |
Beta Was this translation helpful? Give feedback.
-
Could you describe what you are trying to achieve overall? It looks like you might want one data flow query for the case If it is all purely syntactic, you could use |
Beta Was this translation helpful? Give feedback.
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 beingNone
and the empty list, and another for the casesink = B
. But I am not sure when the casesink = B
is supposed to kick in, since the first case also includesC
(random stuff).If it is all purely syntactic, you could use
AstNode
as the common type...