aboutsummaryrefslogtreecommitdiff
path: root/lang/python27/files/patch-Modules_zipimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python27/files/patch-Modules_zipimport.c')
-rw-r--r--lang/python27/files/patch-Modules_zipimport.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lang/python27/files/patch-Modules_zipimport.c b/lang/python27/files/patch-Modules_zipimport.c
deleted file mode 100644
index aaf69496fedd..000000000000
--- a/lang/python27/files/patch-Modules_zipimport.c
+++ /dev/null
@@ -1,17 +0,0 @@
-
-Bug: http://bugs.python.org/issue26171
-
---- Modules/zipimport.c.orig 2015-12-05 19:47:16 UTC
-+++ Modules/zipimport.c
-@@ -895,6 +895,11 @@ get_data(char *archive, PyObject *toc_en
- PyMarshal_ReadShortFromFile(fp); /* local header size */
- file_offset += l; /* Start of file data */
-
-+ if (data_size > LONG_MAX - 1) {
-+ fclose(fp);
-+ PyErr_NoMemory();
-+ return NULL;
-+ }
- raw_data = PyString_FromStringAndSize((char *)NULL, compress == 0 ?
- data_size : data_size + 1);
- if (raw_data == NULL) {