[issue29094] Regression in zipfile writing in 2.7.13

Serhiy Storchaka report at bugs.python.org
Wed May 3 12:24:48 EDT 2017


Serhiy Storchaka added the comment:

Thank you for raising this again and for your research Thomas. I now see that my understanding of the specification was wrong. I'll revert changes to zipfile.

There is one question. If the zip file was concatenated to other file (and looks incorrect from the view of other tools), and we opened it in append mode and added new entries, should the central directory count offsets from the start of the file or from the start of embedded archive? In the first case offsets of first entries (which was in the original concatenated archive) in the central directory will be different from offsets in local headers. In the second case the zip file will look incorrect from the view of other tools (but it already looked incorrect before appending).

----------

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


More information about the Python-bugs-list mailing list