Commit 6203962
committed
Fix an array index out-of-bound bug
Variable `vararg` indicates the index of vararg in parameter list.
While copying kwargs to `buf`, the index `i` should not add `vararg`, which leads to an out-of-bound bug.
When there are positional args, vararg and keyword args in a function definition, in which case `vararg` > 1, this bug can be triggered.
e.g.
```
pos: object
*args: object
kw: object
```1 parent 6793f38 commit 6203962
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2571 | 2571 | | |
2572 | 2572 | | |
2573 | 2573 | | |
2574 | | - | |
| 2574 | + | |
2575 | 2575 | | |
2576 | 2576 | | |
2577 | 2577 | | |
| |||
0 commit comments