Commit 1113cfc7 authored by Jeremy Hylton's avatar Jeremy Hylton

prevent symtable_params() from dereferencing off the end of the

varagslist node. based on fix from Thomas Wouters.
parent 89a27ec0
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment