[New-bugs-announce] [issue26038] zipfile cannot handle zip files where the archive size for a file does not match actual contents

Brett Rosen report at bugs.python.org
Thu Jan 7 08:29:43 EST 2016


New submission from Brett Rosen:

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.

----------
components: Library (Lib)
files: changes.diff
keywords: patch
messages: 257687
nosy: Brett Rosen
priority: normal
severity: normal
status: open
title: zipfile cannot handle zip files where the archive size for a file does not match actual contents
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file41523/changes.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26038>
_______________________________________


More information about the New-bugs-announce mailing list