Skip to content

Commit ed349f7

Browse files
committed
Improve value flow through arrays
1 parent c14d404 commit ed349f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/lib/semmle/go/dataflow/internal/ContainerFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ predicate containerStoreStep(Node node1, Node node2, Content c) {
2121
node2.getType() instanceof SliceType
2222
) and
2323
(
24-
exists(Write w | w.writesElement(node2, _, node1))
24+
exists(Write w | w.writesElement(node2.(PostUpdateNode).getPreUpdateNode(), _, node1))
2525
or
2626
node1 = node2.(ImplicitVarargsSlice).getCallNode().getAnImplicitVarargsArgument()
2727
)

0 commit comments

Comments
 (0)