This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients alter-bug-tracer, berker.peksag, matrixise, serhiy.storchaka
Date 2019-05-28.16:25:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559060732.04.0.972746637046.issue36991@roundup.psfhosted.org>
In-reply-to
Content
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().
History
Date User Action Args
2019-05-28 16:25:32berker.peksagsetrecipients: + berker.peksag, serhiy.storchaka, matrixise, alter-bug-tracer
2019-05-28 16:25:32berker.peksagsetmessageid: <1559060732.04.0.972746637046.issue36991@roundup.psfhosted.org>
2019-05-28 16:25:32berker.peksaglinkissue36991 messages
2019-05-28 16:25:31berker.peksagcreate