[issue36993] zipfile: tuple IndexError on extract
Berker Peksag
report at bugs.python.org
Sat Jun 1 12:13:14 EDT 2019
Berker Peksag <berker.peksag at gmail.com> added the comment:
This report is valid. Serhiy has improved error reporting of the extra field in feccdb2a249a71be330765be77dee57121866779.
counts can indeed be an empty tuple:
elif ln == 0:
counts = ()
If I'm reading section 4.5.3 of https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT correctly, I think we need to raise BadZipFile if ln == 0.
----------
components: +Library (Lib)
nosy: +berker.peksag, serhiy.storchaka
resolution: not a bug ->
stage: resolved -> needs patch
status: closed -> open
type: -> behavior
versions: -Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36993>
_______________________________________
More information about the Python-bugs-list
mailing list