diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-11-18 22:35:48 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-11-18 22:35:48 (GMT) |
commit | ef633d7c5dcad78976350ce8212b7a41a8c7b74c (patch) | |
tree | bb02e401fd96d51d57c7c0c74dace1bf67d2ab63 /Modules | |
parent | 42fe1a2ff864c3f3491e6dab38b24e27db304633 (diff) | |
download | cpython-ef633d7c5dcad78976350ce8212b7a41a8c7b74c.zip cpython-ef633d7c5dcad78976350ce8212b7a41a8c7b74c.tar.gz cpython-ef633d7c5dcad78976350ce8212b7a41a8c7b74c.tar.bz2 |
#4317: Fix an Array Bounds Read in imageop.rgb2rgb8.
Backport of r67266
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/imageop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/imageop.c b/Modules/imageop.c index b756f7d..d746474 100644 --- a/Modules/imageop.c +++ b/Modules/imageop.c @@ -590,7 +590,7 @@ imageop_rgb2rgb8(PyObject *self, PyObject *args) if ( !PyArg_ParseTuple(args, "s#ii", &cp, &len, &x, &y) ) return 0; - if ( !check_multiply_size(len*4, x, "x", y, "y", 4) ) + if ( !check_multiply_size(len, x, "x", y, "y", 4) ) return 0; nlen = x*y; if ( !check_multiply(nlen, x, y) ) |