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 serhiy.storchaka
Recipients Ben Cipollini, Matthew.Brett, martin.panter, nadeem.vawda, serhiy.storchaka, twouters
Date 2015-11-20.09:45:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448012744.53.0.465814958463.issue25626@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, I found yet one bug.

>>> zlib.decompress(zlib.compress(b'abcd'), 0, sys.maxsize+1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: Negative size passed to PyBytes_FromStringAndSize

There are similar bugs in decompressor's methods decompress() and flush() but it is hard to reproduce them.

The maximal length value should be bounded not only with UINT_MAX, but with PY_SSIZE_T_MAX too.

I would merge sval and uval into one variable of type Py_ssize_t.
History
Date User Action Args
2015-11-20 09:45:44serhiy.storchakasetrecipients: + serhiy.storchaka, twouters, nadeem.vawda, martin.panter, Matthew.Brett, Ben Cipollini
2015-11-20 09:45:44serhiy.storchakasetmessageid: <1448012744.53.0.465814958463.issue25626@psf.upfronthosting.co.za>
2015-11-20 09:45:44serhiy.storchakalinkissue25626 messages
2015-11-20 09:45:44serhiy.storchakacreate