mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Guards: Include ConditionalExpr in exprHasValue.
This commit is contained in:
@@ -773,6 +773,10 @@ module Make<
|
|||||||
or
|
or
|
||||||
exprHasValue(e.(IdExpr).getEqualChildExpr(), v)
|
exprHasValue(e.(IdExpr).getEqualChildExpr(), v)
|
||||||
or
|
or
|
||||||
|
exists(ConditionalExpr cond | cond = e |
|
||||||
|
exprHasValue(cond.getThen(), v) and exprHasValue(cond.getElse(), v)
|
||||||
|
)
|
||||||
|
or
|
||||||
exists(SsaDefinition def, Guard g, GuardValue gv |
|
exists(SsaDefinition def, Guard g, GuardValue gv |
|
||||||
e = def.getARead() and
|
e = def.getARead() and
|
||||||
g.directlyValueControls(e.getBasicBlock(), gv) and
|
g.directlyValueControls(e.getBasicBlock(), gv) and
|
||||||
|
|||||||
Reference in New Issue
Block a user