From: Mauro Carvalho Chehab Date: Fri, 18 Aug 2006 10:40:28 +0000 (-0300) Subject: V4L/DVB (4508): Fix an array overflow on bt866 X-Git-Tag: v2.6.19-rc1~643^2~70 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0d0d871b3f3395820ec33a78fb2cc101b9bdcced;p=linux-2.6-omap-h63xx.git V4L/DVB (4508): Fix an array overflow on bt866 The Coverity checker spotted the following two array overflows. Registers 0xcc and 0xdc were cached on reg[] array, with only 128 elements, instead of 256. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/bt866.c b/drivers/media/video/bt866.c index 05e42bbcfc3..772fd52d551 100644 --- a/drivers/media/video/bt866.c +++ b/drivers/media/video/bt866.c @@ -65,7 +65,7 @@ MODULE_LICENSE("GPL"); struct bt866 { struct i2c_client *i2c; int addr; - unsigned char reg[128]; + unsigned char reg[256]; int norm; int enable;