Skip to content

Commit fc11a87

Browse files
committed
Kotlin: Fix dataflow with Array.set wrappers
1 parent 7fc7b96 commit fc11a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/ContainerFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ predicate arrayStoreStep(Node node1, Node node2) {
452452
)
453453
or
454454
exists(Expr arr, Call call |
455-
arr = node2.asExpr() and
455+
arr = node2.(PostUpdateNode).getPreUpdateNode().asExpr() and
456456
call.getArgument(1) = node1.asExpr() and
457457
call.getQualifier() = arr and
458458
arr.getType() instanceof ArrayType and

0 commit comments

Comments
 (0)