New submission from arindam <arindampa...@gmail.com>: 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 (0x80000000 or more). Type of _running_crc is long while _expected_crc is int. How to reproduce: Unzip a zip file containing a file having CRC >= 0x80000000. The issue is seen with 3.1 also. ---------- components: Library (Lib) messages: 126250 nosy: arindam priority: normal severity: normal status: open title: ZipExtFile:_update_crc fails for CRC >= 0x80000000 type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10903> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com