File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/codeql/rust/dataflow/internal
test/library-tests/dataflow/local Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -984,11 +984,12 @@ module RustDataFlow implements InputSig<Location> {
984984 node2 .asExpr ( ) = tuple
985985 )
986986 or
987- exists ( ArrayExprCfgNode arr |
988- c instanceof ArrayElementContent and
989- node1 .asExpr ( ) = arr .getAnExpr ( ) and
990- node2 .asExpr ( ) = arr
991- )
987+ c instanceof ArrayElementContent and
988+ node1 .asExpr ( ) =
989+ [
990+ node2 .asExpr ( ) .( ArrayRepeatExprCfgNode ) .getRepeatOperand ( ) ,
991+ node2 .asExpr ( ) .( ArrayListExprCfgNode ) .getAnExpr ( )
992+ ]
992993 or
993994 tupleAssignment ( node1 , node2 .( PostUpdateNode ) .getPreUpdateNode ( ) , c )
994995 or
Original file line number Diff line number Diff line change @@ -524,7 +524,6 @@ storeStep
524524| main.rs:336:20:336:20 | 2 | array[] | main.rs:336:16:336:33 | [...] |
525525| main.rs:336:23:336:32 | source(...) | array[] | main.rs:336:16:336:33 | [...] |
526526| main.rs:340:17:340:26 | source(...) | array[] | main.rs:340:16:340:31 | [...; 10] |
527- | main.rs:340:29:340:30 | 10 | array[] | main.rs:340:16:340:31 | [...; 10] |
528527| main.rs:344:17:344:17 | 1 | array[] | main.rs:344:16:344:24 | [...] |
529528| main.rs:344:20:344:20 | 2 | array[] | main.rs:344:16:344:24 | [...] |
530529| main.rs:344:23:344:23 | 3 | array[] | main.rs:344:16:344:24 | [...] |
You can’t perform that action at this time.
0 commit comments