merge 3.5
This commit is contained in:
commit
ae8c078dbb
|
@ -1091,6 +1091,10 @@ get_data(PyObject *archive, PyObject *toc_entry)
|
|||
&date, &crc)) {
|
||||
return NULL;
|
||||
}
|
||||
if (data_size < 0) {
|
||||
PyErr_Format(ZipImportError, "negative data size");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
fp = _Py_fopen_obj(archive, "rb");
|
||||
if (!fp)
|
||||
|
|
Loading…
Reference in New Issue