X Tutup
Skip to content

Commit eda5a8e

Browse files
committed
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.)
1 parent 7fdcb41 commit eda5a8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Python/frozen.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
the appropriate bytes from M___main__.c. */
1313

1414
static unsigned char M___hello__[] = {
15-
99,0,0,0,0,1,0,0,0,115,15,0,0,0,127,0,
16-
0,127,1,0,100,0,0,71,72,100,1,0,83,40,2,0,
17-
0,0,115,14,0,0,0,72,101,108,108,111,32,119,111,114,
18-
108,100,46,46,46,78,40,0,0,0,0,40,0,0,0,0,
19-
40,0,0,0,0,40,0,0,0,0,115,8,0,0,0,104,
20-
101,108,108,111,46,112,121,115,1,0,0,0,63,1,0,115,
21-
0,0,0,0,
15+
99,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,
16+
0,115,15,0,0,0,127,0,0,127,1,0,100,0,0,71,
17+
72,100,1,0,83,40,2,0,0,0,115,14,0,0,0,72,
18+
101,108,108,111,32,119,111,114,108,100,46,46,46,78,40,0,
19+
0,0,0,40,0,0,0,0,40,0,0,0,0,40,0,0,
20+
0,0,115,8,0,0,0,104,101,108,108,111,46,112,121,115,
21+
1,0,0,0,63,1,0,0,0,115,0,0,0,0,
2222
};
2323

2424
#define SIZE (int)sizeof(M___hello__)

0 commit comments

Comments
 (0)
X Tutup