summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-07 17:04:02 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-07 17:04:02 (GMT)
commit8956271f11a135e33b0ba99bac48118e337304f6 (patch)
treee418df28d919de55f50b4d8dc45f1af880b55da5 /Modules
parent02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6 (diff)
downloadcpython-8956271f11a135e33b0ba99bac48118e337304f6.zip
cpython-8956271f11a135e33b0ba99bac48118e337304f6.tar.gz
cpython-8956271f11a135e33b0ba99bac48118e337304f6.tar.bz2
Merged revisions 80926 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines Issue #8571: Fix an internal error when compressing or decompressing a chunk larger than 1GB with the zlib module's compressor and decompressor objects. ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zlibmodule.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 2f2e214..353d11a 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -396,7 +396,8 @@ PyDoc_STRVAR(comp_compress__doc__,
static PyObject *
PyZlib_objcompress(compobject *self, PyObject *args)
{
- int err, inplen, length = DEFAULTALLOC;
+ int err, inplen;
+ Py_ssize_t length = DEFAULTALLOC;
PyObject *RetVal;
Py_buffer pinput;
Byte *input;
@@ -477,8 +478,8 @@ PyDoc_STRVAR(decomp_decompress__doc__,
static PyObject *
PyZlib_objdecompress(compobject *self, PyObject *args)
{
- int err, inplen, old_length, length = DEFAULTALLOC;
- int max_length = 0;
+ int err, inplen, max_length = 0;
+ Py_ssize_t old_length, length = DEFAULTALLOC;
PyObject *RetVal;
Py_buffer pinput;
Byte *input;