arindam added the comment:
Legacy code in my module was setting zipfile.structCentralDir to
"<4s4B4H3l5H2L" (was added to fix some issues with older version of python) was
the root cause of this issue. Sorry, should have checked before filing. Thanks
for your time. Sor
arindam added the comment:
Able to get the issue with
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
This is the latest version for 2.7.x
Please try with the uploaded a.zip
--
___
Python tracker
<h
arindam added the comment:
Attached test file a.zip. Happening with 2.7.1.3. The changes came with
/python/branches/release27-maint/Lib/zipfile.py revision 83961
--
Added file: http://bugs.python.org/file20425/a.zip
___
Python tracker
<h
New submission from arindam :
File: zipfile.py
Function: _update_crc
statement: if eof and self._running_crc != self._expected_crc:
Due to comparison of long with int, "if eof and self._running_crc !=
self._expected_crc:" fails when _expected_crc is negative (0x8000 or more)