[issue4844] ZipFile doesn't range check in _EndRecData()
Charles-Francois Natali
report at bugs.python.org
Sun Sep 19 23:06:11 CEST 2010
Charles-Francois Natali <neologix at free.fr> added the comment:
Following EAFP principle, it would be better - cleaner and more efficient - to put the stuct.unpack inside a try/except clause than checking the lengths beforehand.
----------
nosy: +neologix
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4844>
_______________________________________
More information about the Python-bugs-list
mailing list