[Python-checkins] r59081 - python/trunk/Modules/zlibmodule.c
Brett Cannon
brett at python.org
Wed Nov 21 01:51:56 CET 2007
Where is the NEWS entry for this?
-Brett
On Nov 20, 2007 4:46 PM, christian.heimes <python-checkins at python.org> wrote:
> Author: christian.heimes
> Date: Wed Nov 21 01:46:21 2007
> New Revision: 59081
>
> Modified:
> python/trunk/Modules/zlibmodule.c
> Log:
> Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompress
>
> Modified: python/trunk/Modules/zlibmodule.c
> ==============================================================================
> --- python/trunk/Modules/zlibmodule.c (original)
> +++ python/trunk/Modules/zlibmodule.c Wed Nov 21 01:46:21 2007
> @@ -197,10 +197,11 @@
> 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;
>
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
More information about the Python-checkins
mailing list