From 1113cfc767e4db1f5dc4a3d223cc0cbb4f9313b8 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 23 Jan 2001 00:50:52 +0000 Subject: prevent symtable_params() from dereferencing off the end of the varagslist node. based on fix from Thomas Wouters. --- Python/compile.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v0.12