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 martin.panter
Recipients Klamann, martin.panter, nadeem.vawda, xiang.zhang
Date 2016-06-02.23:07:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464908866.54.0.308761645313.issue27130@psf.upfronthosting.co.za>
In-reply-to
Content
Klamann, thanks for crash report. I think your decompress crash is explained by the bug expanding past UINT_MAX I identified above. The key is that length = 0 in zlib_Decompress_decompress_impl(), as if wrapped around, and the return value will have been resized to zero. My suggested fix step 7 would address this.

The workaround here would either be to pass compressed data in smaller chunks (4 MB or less), so that no chunk can expand to 4 GiB, or to make use of the max_length parameter. Either way, it will make any code more complicated though.

If anyone wants to write a patch (or do testing) to solve any or all of the problems, I am happy to help. But it is not a high priority for me to do all the work, because I am not set up to test it easily.
History
Date User Action Args
2016-06-02 23:07:46martin.pantersetrecipients: + martin.panter, nadeem.vawda, xiang.zhang, Klamann
2016-06-02 23:07:46martin.pantersetmessageid: <1464908866.54.0.308761645313.issue27130@psf.upfronthosting.co.za>
2016-06-02 23:07:46martin.panterlinkissue27130 messages
2016-06-02 23:07:46martin.pantercreate