File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
lib/codeql/ruby/dataflow/internal
test/library-tests/dataflow/array-flow Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,11 @@ private module Cached {
86
86
exists ( CfgNodes:: ExprNodes:: OperationCfgNode op |
87
87
op = nodeTo .asExpr ( ) and
88
88
op .getAnOperand ( ) = nodeFrom .asExpr ( ) and
89
- not op .getExpr ( ) instanceof AssignExpr
89
+ not op .getExpr ( ) =
90
+ any ( Expr e |
91
+ e instanceof AssignExpr or
92
+ e instanceof SplatExpr
93
+ )
90
94
)
91
95
or
92
96
// string interpolation of `nodeFrom` into `nodeTo`
Original file line number Diff line number Diff line change 10
10
| array_flow.rb:2:10:2:20 | call to source : | array_flow.rb:2:9:2:20 | * ... : |
11
11
| array_flow.rb:2:10:2:20 | call to source : | array_flow.rb:2:9:2:20 | * ... [array element 0] : |
12
12
| array_flow.rb:2:10:2:20 | call to source : | array_flow.rb:2:9:2:20 | * ... [array element 0] : |
13
- | array_flow.rb:2:10:2:20 | call to source : | array_flow.rb:3:10:3:10 | a : |
14
- | array_flow.rb:2:10:2:20 | call to source : | array_flow.rb:4:10:4:10 | a : |
15
- | array_flow.rb:2:10:2:20 | call to source : | array_flow.rb:5:10:5:10 | a : |
16
13
| array_flow.rb:3:10:3:10 | a : | array_flow.rb:3:10:3:13 | ...[...] |
17
14
| array_flow.rb:3:10:3:10 | a [array element 0] : | array_flow.rb:3:10:3:13 | ...[...] |
18
15
| array_flow.rb:3:10:3:10 | a [array element 0] : | array_flow.rb:3:10:3:13 | ...[...] |
You can’t perform that action at this time.
0 commit comments