mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Update PostUpdateNodes for implicit varargs slices
We don't want a post update node for the implicit varargs slice, and we do want one for each argument which is stored in the implicit varargs slice.
This commit is contained in:
@@ -732,7 +732,11 @@ module Public {
|
||||
or
|
||||
preupd = getAWrittenNode()
|
||||
or
|
||||
preupd instanceof ArgumentNode and
|
||||
(
|
||||
preupd instanceof ArgumentNode and not preupd instanceof ImplicitVarargsSlice
|
||||
or
|
||||
preupd = any(CallNode c).getImplicitVarargsArgument(_)
|
||||
) and
|
||||
mutableType(preupd.getType())
|
||||
) and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user