James C. Ahlstrom added the comment:
I received a bug report from a user. He had a zip file created by Mac OS
10.5.8 that the zipfile module claimed was not a valid zip file. The traceback
went to function _EndRecData(fpin). The file had a valid comment appended, but
recorded a comment
James C. Ahlstrom added the comment:
Problem was reported on 2.7. I will check in detail this weekend. Please
stand by.
--
___
Python tracker
<http://bugs.python.org/issue1757
James C. Ahlstrom added the comment:
I grabbed a 2.7.2 zipfile.py, and my original comments stand. If there is a
"garbage at end of file" patch, I can't find it; please provide a line number
or a hint. The user at yale.edu reports that the patch works. Here is a diff
of
James C. Ahlstrom added the comment:
For completeness, I checked other versions of Python. The example zip file
fails in Python 3.1, but succeeds in Python 3.2.2. The patch for 3.2.2 removed
the check for correct comment length, but substituted no further check for
validity