We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c14d404 commit ed349f7Copy full SHA for ed349f7
go/ql/lib/semmle/go/dataflow/internal/ContainerFlow.qll
@@ -21,7 +21,7 @@ predicate containerStoreStep(Node node1, Node node2, Content c) {
21
node2.getType() instanceof SliceType
22
) and
23
(
24
- exists(Write w | w.writesElement(node2, _, node1))
+ exists(Write w | w.writesElement(node2.(PostUpdateNode).getPreUpdateNode(), _, node1))
25
or
26
node1 = node2.(ImplicitVarargsSlice).getCallNode().getAnImplicitVarargsArgument()
27
)
0 commit comments