Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 2ef4212

Browse files
author
Max Schaefer
committed
Add a clarifying comment.
1 parent 9385857 commit 2ef4212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ql/src/semmle/go/dataflow/FunctionInputsAndOutputs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ private class OutParameter extends FunctionOutput, TOutParameter {
264264
override DataFlow::Node getExitNode(DataFlow::CallNode c) {
265265
exists(DataFlow::Node arg |
266266
arg = getArgument(c, index) and
267+
// exclude slices passed to varargs parameters using `...` calls
267268
not (c.hasEllipsis() and index = c.getNumArgument() - 1)
268269
|
269270
result.(DataFlow::PostUpdateNode).getPreUpdateNode() = arg

0 commit comments

Comments
 (0)