]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix SF #561858 Assertion with very long lists
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Jun 2002 18:26:22 +0000 (18:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Jun 2002 18:26:22 +0000 (18:26 +0000)
commitf79e084e38264e93b78a59df444b1a3dd2b2cf4c
tree0408dbe1c2282614d4f15b08161b6f44e488e236
parent6ad0a79c0705df9eb2a3ddfce187f293497d2ba0
Fix SF #561858 Assertion with very long lists

if co_stacksize was > 32767 (the maximum value
which can be stored in 16 bits (signed)),
the PyCodeObject would be written wrong.
So on the second import (reading the .pyc)
would cause a crash.

Since we can't change the PYC magic, we
go on (silently), but don't write the file.
This means everything will work, but
a .pyc will not be written and the file will need
to be parsed on each import.

I will backport.
Python/import.c