Commit 0bf7813b authored by Benjamin Peterson's avatar Benjamin Peterson

merge 3.4

parents 1e267c18 02246381
...@@ -1091,6 +1091,10 @@ get_data(PyObject *archive, PyObject *toc_entry) ...@@ -1091,6 +1091,10 @@ get_data(PyObject *archive, PyObject *toc_entry)
&date, &crc)) { &date, &crc)) {
return NULL; return NULL;
} }
if (data_size < 0) {
PyErr_Format(ZipImportError, "negative data size");
return NULL;
}
fp = _Py_fopen_obj(archive, "rb"); fp = _Py_fopen_obj(archive, "rb");
if (!fp) if (!fp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment