mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
C++: Handle conversions in 'isInConditionalEvaluation'.
This commit is contained in:
@@ -259,9 +259,9 @@ private predicate usedAsCondition(Expr expr) {
|
||||
|
||||
private predicate isInConditionalEvaluation(Expr e) {
|
||||
exists(ConditionalExpr cond |
|
||||
e = cond.getThen() and not cond.isTwoOperand()
|
||||
e = cond.getThen().getFullyConverted() and not cond.isTwoOperand()
|
||||
or
|
||||
e = cond.getElse()
|
||||
e = cond.getElse().getFullyConverted()
|
||||
)
|
||||
or
|
||||
isInConditionalEvaluation(getRealParent(e))
|
||||
|
||||
Reference in New Issue
Block a user