mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Java: Add ConditionalExpr to overflow candidate pattern.
This commit is contained in:
@@ -132,6 +132,11 @@ Expr overFlowCand() {
|
||||
result.(AssignExpr).getRhs() = overFlowCand()
|
||||
or
|
||||
result.(LocalVariableDeclExpr).getInit() = overFlowCand()
|
||||
or
|
||||
exists(ConditionalExpr c | c = result |
|
||||
c.getTrueExpr() = overFlowCand() and
|
||||
c.getFalseExpr() = overFlowCand()
|
||||
)
|
||||
}
|
||||
|
||||
predicate positiveOrNegative(Expr e) { positive(e) or negative(e) }
|
||||
|
||||
Reference in New Issue
Block a user