diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-14 01:11:57 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-14 01:11:57 (GMT) |
commit | eda5a8ea0fc89111e7de7c1228540071817ffbbb (patch) | |
tree | 9e159e2cf80958d5621e2d0fac3909bf8e27de39 | |
parent | 7fdcb411312db260e77f291b4e8a865aa61b7c6a (diff) | |
download | cpython-eda5a8ea0fc89111e7de7c1228540071817ffbbb.zip cpython-eda5a8ea0fc89111e7de7c1228540071817ffbbb.tar.gz cpython-eda5a8ea0fc89111e7de7c1228540071817ffbbb.tar.bz2 |
Fix SF bug # 561858 Assertion with very long lists
Write 4 bytes for co_stacksize, etc. to prevent writing out
bad .pyc files which can cause a crash when read back in.
(I forgot that frozen needs to be updated too for the test.)
-rw-r--r-- | Python/frozen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Python/frozen.c b/Python/frozen.c index 3b0c372..069ce3c 100644 --- a/Python/frozen.c +++ b/Python/frozen.c @@ -12,13 +12,13 @@ the appropriate bytes from M___main__.c. */ static unsigned char M___hello__[] = { - 99,0,0,0,0,1,0,0,0,115,15,0,0,0,127,0, - 0,127,1,0,100,0,0,71,72,100,1,0,83,40,2,0, - 0,0,115,14,0,0,0,72,101,108,108,111,32,119,111,114, - 108,100,46,46,46,78,40,0,0,0,0,40,0,0,0,0, - 40,0,0,0,0,40,0,0,0,0,115,8,0,0,0,104, - 101,108,108,111,46,112,121,115,1,0,0,0,63,1,0,115, - 0,0,0,0, + 99,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0, + 0,115,15,0,0,0,127,0,0,127,1,0,100,0,0,71, + 72,100,1,0,83,40,2,0,0,0,115,14,0,0,0,72, + 101,108,108,111,32,119,111,114,108,100,46,46,46,78,40,0, + 0,0,0,40,0,0,0,0,40,0,0,0,0,40,0,0, + 0,0,115,8,0,0,0,104,101,108,108,111,46,112,121,115, + 1,0,0,0,63,1,0,0,0,115,0,0,0,0, }; #define SIZE (int)sizeof(M___hello__) |