[issue8571] zlib causes a SystemError when decompressing a chunk >1GB
Denis Dmitriev
report at bugs.python.org
Thu Apr 29 18:50:31 CEST 2010
Denis Dmitriev <dmitriev at deshaw.com> added the comment:
Alright, I think this is caused by the following:
static PyObject *
PyZlib_objdecompress(compobject *self, PyObject *args)
{
int err, inplen, old_length, length = DEFAULTALLOC;
int max_length = 0;
The problem is that inplen, length, old_length, and max_length are all ints, whereas they should be Py_ssize_t. I think replacing them should make the bug go away. (I can't test it right now though because I'm having trouble compiling zlibmodule on my current machine)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8571>
_______________________________________
More information about the Python-bugs-list
mailing list