During debugging a driver, I found that at least in

linux/drivers/media/dvb/dvb-usb/dibusb-mc.c     
the length of ir_codes_dibusb_table was referring to an older version.
This may have caused memory overrun problems

I have fixed this in my branch in
linux/drivers/media/dvb/dvb-usb/dibusb.h
 with a
#define IR_CODES_DIBUSB_TABLE_LEN 111

http://linuxtv.org/hg/~jhoogenraad/rtl2831-r2/rev/549b40b69fa4

I agree this is not the nicest solution, but at at least would reduce some problems.
I am not sure on how to create a patch for this ?
Should I make a new branch in the HG archive ?

I suggest to replate the 111-s into IR_CODES_DIBUSB_TABLE_LEN in the files below as well:

    * drivers/media/dvb/dvb-usb/dibusb-common.c:
          o line 330
          o line 459
    * drivers/media/dvb/dvb-usb/dibusb-mb.c:
          o line 215
          o line 299
          o line 363
          o line 420
    * drivers/media/dvb/dvb-usb/dibusb.h, line 127

--
Jan Hoogenraad
Hoogenraad Interface Services
Postbus 2717
3500 GS Utrecht
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to