[Python-Dev] LOAD_CONST POP_TOP (original) (raw)

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 LOADCONST: + cumlc = lastlc + 1; + /* Skip over LOADCONST POPTOP */ + if (codestr[i+3] == POPTOP) {

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