mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Propagate data flow through NewExprs
This commit is contained in:
committed by
Jonas Jensen
parent
623652247d
commit
66164eb06f
@@ -376,6 +376,8 @@ private predicate exprToExprStep_nocfg(Expr fromExpr, Expr toExpr) {
|
||||
or
|
||||
toExpr = any(StmtExpr stmtExpr | fromExpr = stmtExpr.getResultExpr())
|
||||
or
|
||||
toExpr.(NewExpr).getInitializer() = fromExpr
|
||||
or
|
||||
toExpr = any(Call call |
|
||||
exists(DataFlowFunction f, FunctionInput inModel, FunctionOutput outModel, int iIn |
|
||||
call.getTarget() = f and
|
||||
|
||||
Reference in New Issue
Block a user