[issue1757072] Zipfile robustness

2011-12-14 Thread James C. Ahlstrom
James C. Ahlstrom jahl...@gmail.com 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

[issue1757072] Zipfile robustness

2011-12-09 Thread James C. Ahlstrom
James C. Ahlstrom jahl...@gmail.com added the comment: Problem was reported on 2.7. I will check in detail this weekend. Please stand by. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1757072

[issue1757072] Zipfile robustness

2011-12-09 Thread James C. Ahlstrom
James C. Ahlstrom jahl...@gmail.com 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 my

[issue1757072] Zipfile robustness

2011-12-08 Thread James C. Ahlstrom
James C. Ahlstrom ahlstro...@users.sourceforge.net 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