diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6ca777e5bb..a9ff3dffdb 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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) { |