mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
fix cfg and dataflow for logical compound assignments
This commit is contained in:
@@ -1495,6 +1495,16 @@ module DataFlow {
|
||||
predExpr = succExpr.(NonNullAssertion).getExpression()
|
||||
or
|
||||
predExpr = succExpr.(ExpressionWithTypeArguments).getExpression()
|
||||
or
|
||||
(
|
||||
succExpr instanceof AssignLogOrExpr or
|
||||
succExpr instanceof AssignLogAndExpr or
|
||||
succExpr instanceof AssignNullishCoalescingExpr
|
||||
) and
|
||||
(
|
||||
predExpr = succExpr.(CompoundAssignExpr).getLhs() or
|
||||
predExpr = succExpr.(CompoundAssignExpr).getRhs()
|
||||
)
|
||||
)
|
||||
or
|
||||
// flow from 'this' parameter into 'this' expressions
|
||||
|
||||
Reference in New Issue
Block a user