diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-23 00:50:52 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-23 00:50:52 (GMT) |
commit | 1113cfc767e4db1f5dc4a3d223cc0cbb4f9313b8 (patch) | |
tree | 8b1b453abcd018436fbfad648905f508cce2bece /Python/compile.c | |
parent | 89a27ec01c08beeeef69bfe34a627a1ec70aca56 (diff) | |
download | cpython-1113cfc767e4db1f5dc4a3d223cc0cbb4f9313b8.zip cpython-1113cfc767e4db1f5dc4a3d223cc0cbb4f9313b8.tar.gz cpython-1113cfc767e4db1f5dc4a3d223cc0cbb4f9313b8.tar.bz2 |
prevent symtable_params() from dereferencing off the end of the
varagslist node. based on fix from Thomas Wouters.
Diffstat (limited to 'Python/compile.c')
-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 6ca777e..a9ff3df 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) { |