[Python-Dev] LOAD_CONST POP_TOP
Armin Rigo
arigo at tunes.org
Sun Jul 2 13:23:44 CEST 2006
Hi Georg,
On Fri, Jun 30, 2006 at 08:39:13PM +0200, Georg Brandl wrote:
> + case LOAD_CONST:
> + cumlc = lastlc + 1;
> + /* Skip over LOAD_CONST POP_TOP */
> + if (codestr[i+3] == POP_TOP) {
This is missing a ISBASICBLOCK() check. It makes the following example
segfault:
a = 5
for i in range(1000):
a or 4
Attached an updated patch to the SF tracker.
A bientot,
Armin.
More information about the Python-Dev
mailing list