Commit 71e8e6a9 authored by Christian Heimes's avatar Christian Heimes

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

parent 4f3cdf1c
...@@ -141,6 +141,8 @@ Extension Modules ...@@ -141,6 +141,8 @@ Extension Modules
- Build using system ffi library on arm*-linux*. - Build using system ffi library on arm*-linux*.
- Bug #1372: zlibmodule.c: int overflow in PyZlib_decompress
Documentation Documentation
------------- -------------
......
...@@ -197,10 +197,11 @@ PyZlib_decompress(PyObject *self, PyObject *args) ...@@ -197,10 +197,11 @@ PyZlib_decompress(PyObject *self, PyObject *args)
PyObject *result_str; PyObject *result_str;
Byte *input; Byte *input;
int length, err; int length, err;
int wsize=DEF_WBITS, r_strlen=DEFAULTALLOC; int wsize=DEF_WBITS;
Py_ssize_t r_strlen=DEFAULTALLOC;
z_stream zst; z_stream zst;
if (!PyArg_ParseTuple(args, "s#|ii:decompress", if (!PyArg_ParseTuple(args, "s#|in:decompress",
&input, &length, &wsize, &r_strlen)) &input, &length, &wsize, &r_strlen))
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment