[issue5701] ZipFile returns compressed data stream when encountering unsupported compression method

2009-04-05 Thread Yngve AAdlandsvik
New submission from Yngve AAdlandsvik : The attached .zip archive contains two uncompressed files (2! SCHEME.Z64, 3!SCHEME.Z64) and two files compressed with IMPLODE (1! SCHEME.Z64, 4!SCHEME.Z64), a compression method not currently supported in ZipFile. When using ZipFile.read() on the latter

[issue4844] ZipFile doesn't range check in _EndRecData()

2009-01-05 Thread Yngve AAdlandsvik
Yngve AAdlandsvik added the comment: Here is the file. Note that this can be reproduced with any zip file if you delete the last byte of the file. Added file: http://bugs.python.org/file12597/64times01-double.zip ___ Python tracker <http://bugs.python.

[issue4844] ZipFile doesn't range check in _EndRecData()

2009-01-05 Thread Yngve AAdlandsvik
New submission from Yngve AAdlandsvik : If you have a .zip file with an incomplete "End of Central Directory" record, _EndRecData() will throw a struct.error: D:\c64workdir\Ultimate_Mag_Archive>e:ziptest.py "old - Ultimate_Mag_Archive" Handling A-z\0\64times01-dou