[issue8571] zlib causes a SystemError when decompressing a chunk >1GB

2010-05-07 Thread Denis Dmitriev
Denis Dmitriev added the comment: Is there a reason to keep inplen and max_length ints instead of making them Py_ssize_t too? I'm a little worried that keeping them ints will cause a similar problem further down the line. -- ___ Python tr

[issue8571] zlib causes a SystemError when decompressing a chunk >1GB

2010-04-29 Thread Denis Dmitriev
Denis Dmitriev 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

[issue8571] zlib causes a SystemError when decompressing a chunk >1GB

2010-04-29 Thread Denis Dmitriev
New submission from Denis Dmitriev : There's a bug in python's zlibmodule.c that makes it raise SystemError whenever it tries to decompress a chunk larger than 1GB is size. Here's an example of this in action: dmitr...@...:~/moo/zlib_bug> cat zlib_bug.py import zlib def