Dingyuan Wang added the comment: Yes, patching zipfile is enough. I wrote a test using `unzip -t` to check the zip. ZipFile.testzip can't detect this kind of error because zlib.decompressobj(-15) will decode b'' to b'' without errors.
---------- Added file: http://bugs.python.org/file41120/storedirectory_test.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25624> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com