Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.4k
Commit6203962
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 parent6793f38 commit6203962
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
Comments
(0)