mirror of https://github.com/python/cpython
merge 3.4
This commit is contained in:
commit
d52513cb22
|
@ -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