summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-18 22:19:37 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-18 22:19:37 +0000
commit0a09458935e936a4244d335d9c231b32fa00b0e0 (patch)
tree2f32b60415ffbe8d84b001f6fb36b9788ed732a4 /Modules
parent3252c8d96f24dca39e10a3cb5500a94a5f33e673 (diff)
downloadcpython-0a09458935e936a4244d335d9c231b32fa00b0e0.tar.gz
#4317: Fix an Array Bounds Read in imageop.rgb2rgb8.
Will backport to 2.4.
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 61a0c2f813..8d0d68f71d 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) )