mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
merge 3.4
This commit is contained in:
commit
d52513cb22
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue