mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
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.
This commit is contained in:
parent
1f68fc7fa5
commit
7fdcb41131
3 changed files with 43 additions and 12 deletions
|
|
@ -59,9 +59,9 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *);
|
|||
Python 2.1.1: 60202
|
||||
Python 2.1.2: 60202
|
||||
Python 2.2: 60717
|
||||
Python 2.3a0: 62001
|
||||
Python 2.3a0: 62011
|
||||
*/
|
||||
#define MAGIC (62001 | ((long)'\r'<<16) | ((long)'\n'<<24))
|
||||
#define MAGIC (62011 | ((long)'\r'<<16) | ((long)'\n'<<24))
|
||||
|
||||
/* Magic word as global; note that _PyImport_Init() can change the
|
||||
value of this global to accommodate for alterations of how the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue