[issue36991] zipfile: AttributeError on extract
Berker Peksag
report at bugs.python.org
Tue May 28 12:25:32 EDT 2019
Berker Peksag <berker.peksag at gmail.com> added the comment:
The OP's report is valid and they already stated that the file is malformed. More importantly, this can be reproduced with a valid ZIP file as well.
The correct behavior is to get RuntimeError in this case.
_check_compression() needs to be called before _get_decompressor().
There is no issue when getting the compressor object because _check_compression() is called inside _writecheck().
----------
components: +Library (Lib)
nosy: +berker.peksag, serhiy.storchaka
resolution: not a bug ->
stage: resolved -> patch review
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36991>
_______________________________________
More information about the Python-bugs-list
mailing list