Skip to content

Commit

Permalink
V4L/DVB (4508): Fix an array overflow on bt866
Browse files Browse the repository at this point in the history
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 <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Sep 26, 2006
1 parent eb42c42 commit 0d0d871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/bt866.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d0d871

Please sign in to comment.