Skip to content

Commit

Permalink
Kotlin: Fix dataflow with Array.set wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Dec 6, 2023
1 parent 7fc7b96 commit fc11a87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ predicate arrayStoreStep(Node node1, Node node2) {
)
or
exists(Expr arr, Call call |
arr = node2.asExpr() and
arr = node2.(PostUpdateNode).getPreUpdateNode().asExpr() and
call.getArgument(1) = node1.asExpr() and
call.getQualifier() = arr and
arr.getType() instanceof ArrayType and
Expand Down

0 comments on commit fc11a87

Please sign in to comment.