Issue 26038: zipfile cannot handle zip files where the archive size for a file does not match actual contents (original) (raw)

Issue26038

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:25 admin set github: 70226
2016-01-14 18:36:39 SilentGhost set nosy: + twouters, alanmcintyre, serhiy.storchakaversions: + Python 3.5, Python 3.6, - Python 3.4
2016-01-07 13:29:43 Brett Rosen create