Kotlin: Fix dataflow with Array.set wrappers

This commit is contained in:
Ian Lynagh
2023-12-06 12:19:46 +00:00
parent 7fc7b96ed7
commit fc11a87882

View File

@@ -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