Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompress

This commit is contained in:
Christian Heimes 2007-11-21 00:44:57 +00:00
parent 6b5c14fe78
commit 946a51c187
2 changed files with 5 additions and 2 deletions

View File

@ -141,6 +141,8 @@ Extension Modules
- Build using system ffi library on arm*-linux*.
- Bug #1372: zlibmodule.c: int overflow in PyZlib_decompress
Documentation
-------------

View File

@ -197,10 +197,11 @@ PyZlib_decompress(PyObject *self, PyObject *args)
PyObject *result_str;
Byte *input;
int length, err;
int wsize=DEF_WBITS, r_strlen=DEFAULTALLOC;
int wsize=DEF_WBITS;
Py_ssize_t r_strlen=DEFAULTALLOC;
z_stream zst;
if (!PyArg_ParseTuple(args, "s#|ii:decompress",
if (!PyArg_ParseTuple(args, "s#|in:decompress",
&input, &length, &wsize, &r_strlen))
return NULL;