summaryrefslogtreecommitdiff
path: root/Modules/imageop.c
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
commit7cfe7ea745d6222103c32c089e591229de2c2817 (patch)
tree4d2abf8d9d6b3bbe1b09093d502ddaa3f6c7ef9b /Modules/imageop.c
parent273c233c78d36f65059342981dcdc5b212a7e558 (diff)
downloadcpython-git-7cfe7ea745d6222103c32c089e591229de2c2817.tar.gz
#4317: Fix an Array Bounds Read in imageop.rgb2rgb8.
Will backport to 2.4.
Diffstat (limited to 'Modules/imageop.c')
-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) )