[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip
Antoine Pitrou
report at bugs.python.org
Mon Aug 9 23:14:49 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
Actually, there are two places where the internal buffer is trimmed from consumed data:
self._readbuffer = self._readbuffer[self._offset:] + data
self._offset = 0
At this point, it seems self._crc_offset should also be reset to zero, otherwise some data will be forgotten on the next read() call.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7467>
_______________________________________
More information about the Python-bugs-list
mailing list