mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
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 <mchehab@infradead.org>
This commit is contained in:
parent
eb42c42449
commit
0d0d871b3f
@ -65,7 +65,7 @@ MODULE_LICENSE("GPL");
|
|||||||
struct bt866 {
|
struct bt866 {
|
||||||
struct i2c_client *i2c;
|
struct i2c_client *i2c;
|
||||||
int addr;
|
int addr;
|
||||||
unsigned char reg[128];
|
unsigned char reg[256];
|
||||||
|
|
||||||
int norm;
|
int norm;
|
||||||
int enable;
|
int enable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user