[issue4844] ZipFile doesn't range check in _EndRecData()
Antoine Pitrou
report at bugs.python.org
Sun Dec 2 19:15:09 CET 2012
Antoine Pitrou added the comment:
In test_damaged_zipfile:
+ for N in range(len(s) - 2):
+ with open(TESTFN, "wb") as f:
+ f.write(s[:N])
why not `range(len(s))` instead?
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4844>
_______________________________________
More information about the Python-bugs-list
mailing list