Message254963
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. |
|
Date |
User |
Action |
Args |
2015-11-20 09:45:44 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, twouters, nadeem.vawda, martin.panter, Matthew.Brett, Ben Cipollini |
2015-11-20 09:45:44 | serhiy.storchaka | set | messageid: <1448012744.53.0.465814958463.issue25626@psf.upfronthosting.co.za> |
2015-11-20 09:45:44 | serhiy.storchaka | link | issue25626 messages |
2015-11-20 09:45:44 | serhiy.storchaka | create | |
|