This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: zipfile cannot handle zip files where the archive size for a file does not match actual contents
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Brett Rosen, alanmcintyre, serhiy.storchaka, twouters
Priority: normal Keywords: patch

Created on 2016-01-07 13:29 by Brett Rosen, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
changes.diff Brett Rosen, 2016-01-07 13:29
Messages (1)
msg257687 - (view) Author: Brett Rosen (Brett Rosen) * Date: 2016-01-07 13:29
In python 2.7 it was able to handle this. It looks like this was introduced in https://github.com/python/cpython/commit/ae489fa76bb02daa636afe3bebec232e5aa9fac5 .

I'm not really sure if this should be considered a regression or not since the zip files that trigger this could be considered bad, even though unzip and older versions of zipfile.py could handle them.

I've attached a copy of a local diff I applied that worked around this issue, but I don't think it is a proper fix.
History
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70226
2016-01-14 18:36:39SilentGhostsetnosy: + twouters, alanmcintyre, serhiy.storchaka

versions: + Python 3.5, Python 3.6, - Python 3.4
2016-01-07 13:29:43Brett Rosencreate