aboutsummaryrefslogtreecommitdiff
path: root/lang/python27/files/patch-Modules_zipimport.c
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2016-07-03 00:10:42 +0000
committerWen Heping <wen@FreeBSD.org>2016-07-03 00:10:42 +0000
commit427fad8f42c93d25a85ac98021c4d84f418aa413 (patch)
tree20e7c0ea278774dc2d9fe0f859e69cf61dc3aca1 /lang/python27/files/patch-Modules_zipimport.c
parent2cb4f8c1bf0bf6c87f070c5612307e1b4c9899ae (diff)
downloadports-427fad8f42c93d25a85ac98021c4d84f418aa413.tar.gz
ports-427fad8f42c93d25a85ac98021c4d84f418aa413.zip
Notes
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) {