Skip to contentSkip to conversation

drivers/media/video/bt866.c: array overflows

PATCH New Martin Samuelsson 1 participant 1 message Aug 21, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/media/video/bt866.c: array overflows

This extends reg in the bt866 struct from 128 to 256 bytes, which will prevent a number of array overflows later in the code.

---

 bt866.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
usr/src/linux-2.6.18-rc4-avs6eyes/drivers/media/video/bt866.c 2006-08-21 21:51:14.000000000 +0200 renamed from usr/src/linux-2.6.18-rc4/drivers/media/video/bt866.c 2006-08-21 22:59:16.000000000 +0200 +1 -1
@@ -65,7 +65,7 @@
 struct bt866 {
        struct i2c_client *i2c;
        int addr;
-       unsigned char reg[128];
+       unsigned char reg[256];
 
        int norm;
        int enable;