mirror of https://github.com/python/cpython
Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompress
This commit is contained in:
parent
0e5edf5afd
commit
901071bde5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue