summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bt866.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-08-18 07:40:28 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-08-18 07:40:28 -0300
commiteb4857b848cc4500823e524adbe5c213e2717e07 (patch)
treeaffdbe1f1225aed8ea57fd87406c90cf26b3669e /linux/drivers/media/video/bt866.c
parent8c044f40cff8cedfce6cf8431f813b3110565058 (diff)
downloadmediapointer-dvb-s2-eb4857b848cc4500823e524adbe5c213e2717e07.tar.gz
mediapointer-dvb-s2-eb4857b848cc4500823e524adbe5c213e2717e07.tar.bz2
Fix an array overflow on bt866
From: Mauro Carvalho Chehab <mchehab@infradead.org> 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. Thanks-to: Adrian Bunk <bunk@stusta.de> for pointing this CC: Adrian Bunk <bunk@stusta.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/bt866.c')
-rw-r--r--linux/drivers/media/video/bt866.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/bt866.c b/linux/drivers/media/video/bt866.c
index 64f21c0a2..06c1a918f 100644
--- a/linux/drivers/media/video/bt866.c
+++ b/linux/drivers/media/video/bt866.c
@@ -66,7 +66,7 @@ MODULE_LICENSE("GPL");
struct bt866 {
struct i2c_client *i2c;
int addr;
- unsigned char reg[128];
+ unsigned char reg[256];
int norm;
int enable;