summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-06-14 01:07:39 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2002-06-14 01:07:39 +0000
commit7fdcb411312db260e77f291b4e8a865aa61b7c6a (patch)
tree6ebdfc0e3aa5b23ee5ff43ab4dbb99a9c52119d1 /Python/import.c
parent1f68fc7fa5048e0576ff26436012765f4a8fa3d4 (diff)
downloadcpython-git-7fdcb411312db260e77f291b4e8a865aa61b7c6a.tar.gz
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.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index e3efffe773..dabb753077 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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