mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Kotlin: Add CFG for VarArgExpr
This commit is contained in:
@@ -461,6 +461,8 @@ private module ControlFlowGraphImpl {
|
||||
or
|
||||
this instanceof StringTemplateExpr
|
||||
or
|
||||
this instanceof VarArgExpr
|
||||
or
|
||||
this instanceof ClassExpr
|
||||
or
|
||||
this instanceof RValue
|
||||
@@ -556,6 +558,10 @@ private module ControlFlowGraphImpl {
|
||||
result = e.getComponent(index)
|
||||
)
|
||||
or
|
||||
exists(VarArgExpr e | e = this |
|
||||
result = e.getComponent(index)
|
||||
)
|
||||
or
|
||||
index = 0 and result = this.(ClassExpr).getExpr()
|
||||
or
|
||||
index = 0 and result = this.(ReturnStmt).getResult()
|
||||
|
||||
Reference in New Issue
Block a user