[New-bugs-announce] [issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

Guillaume Carre report at bugs.python.org
Tue Jul 29 23:42:10 CEST 2014


New submission from Guillaume Carre:

I've got a zip file with a Zip64 end of central directory locator in which:
- total number of disks = 0000
- number of the disk with the start of the zip64 end of central directory = 0000

According to the test line 176 in zipfile.py this fails:
    if diskno != 0 or disks != 1:
        raise BadZipfile("zipfiles that span multiple disks are not supported")

I believe the test should be changed to  
    if diskno != 0 or disks > 1:

----------
components: Library (Lib)
messages: 224257
nosy: Guillaume.Carre
priority: normal
severity: normal
status: open
title: Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list