mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
prevent symtable_params() from dereferencing off the end of the
varagslist node. based on fix from Thomas Wouters.
This commit is contained in:
parent
89a27ec01c
commit
1113cfc767
1 changed files with 2 additions and 0 deletions
|
@ -4325,6 +4325,8 @@ symtable_params(struct symtable *st, node *n)
|
|||
symtable_add_def(st, STR(CHILD(n, i)),
|
||||
DEF_PARAM | DEF_STAR);
|
||||
i += 2;
|
||||
if (i >= NCH(n))
|
||||
return;
|
||||
c = CHILD(n, i);
|
||||
}
|
||||
if (TYPE(c) == DOUBLESTAR) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue