[Python-checkins] CVS: python/dist/src/Python compile.c,2.148,2.149
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 22 Jan 2001 16:50:54 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv6605
Modified Files:
compile.c
Log Message:
prevent symtable_params() from dereferencing off the end of the
varagslist node. based on fix from Thomas Wouters.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.148
retrieving revision 2.149
diff -C2 -r2.148 -r2.149
*** compile.c 2001/01/22 04:35:57 2.148
--- compile.c 2001/01/23 00:50:52 2.149
***************
*** 4326,4329 ****
--- 4326,4331 ----
DEF_PARAM | DEF_STAR);
i += 2;
+ if (i >= NCH(n))
+ return;
c = CHILD(n, i);
}