summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-18 22:35:48 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-18 22:35:48 +0000
commit4a699f62d93ff0673fbe30d28be708fbeea938ef (patch)
tree589734bedc6c26f07e44ab97e28cc14dc71334ed /Modules
parentaf2325be3329a8a0000f1ea5be0993c72d3ea39a (diff)
downloadcpython-4a699f62d93ff0673fbe30d28be708fbeea938ef.tar.gz
#4317: Fix an Array Bounds Read in imageop.rgb2rgb8.
Backport of r67266
Diffstat (limited to 'Modules')
-rw-r--r--Modules/imageop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/imageop.c b/Modules/imageop.c
index b756f7dc41..d746474da1 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) )