[issue25624] shutil.make_archive makes invalid directory entries

Dingyuan Wang report at bugs.python.org
Sun Nov 22 01:50:11 EST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue25624>
_______________________________________


More information about the Python-bugs-list mailing list