[Python-checkins] python/dist/src/Python compile.c,2.307,2.308
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sat Jul 17 07:00:55 CEST 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4812/Python
Modified Files:
compile.c
Log Message:
optimize_code(): Repaired gross error in new special-casing for None.
The preceding case statement was missing a terminating "break" stmt,
so fell into the new code by mistake. This caused uncaught out-of-bounds
accesses to the "names" tuple, leading to a variety of insane behaviors.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.307
retrieving revision 2.308
diff -C2 -d -r2.307 -r2.308
*** compile.c 16 Jul 2004 12:13:38 -0000 2.307
--- compile.c 17 Jul 2004 05:00:52 -0000 2.308
***************
*** 420,424 ****
SETARG(codestr, i, (j^1));
codestr[i+3] = NOP;
!
/* Replace LOAD_GLOBAL/LOAD_NAME None with LOAD_CONST None */
case LOAD_NAME:
--- 420,425 ----
SETARG(codestr, i, (j^1));
codestr[i+3] = NOP;
! break;
!
/* Replace LOAD_GLOBAL/LOAD_NAME None with LOAD_CONST None */
case LOAD_NAME:
More information about the Python-checkins
mailing list