[issue10694] zipfile.py end of central directory detection not robust

Xuanji Li report at bugs.python.org
Tue Dec 21 09:12:19 CET 2010


Xuanji Li <xuanji at gmail.com> added the comment:

Hi KevinH, sorry if I gave the wrong impression that you must submit a patch before anyone will look at the bug. I thought you wanted to provide a patch for this. If you only want to report a bug that is ok, thanks for that.

I have confirmed your bug on the py3k branch. Attached is a patch that adds a test case to test_zipfile.py (as requested by others) and ports Kevin's patch to py3k. I have confirmed that his patch works: without it the test fails, and with it the test passes. Note: You have to create a file "README.zip" in the Lib/test directory, because svn diff cannot display added files.

----------
Added file: http://bugs.python.org/file20127/Issue10694.diff

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


More information about the Python-bugs-list mailing list