linux/drivers/usb/misc
Matthew Garrett 62b5884875 isight_firmware: Avoid crash on loading invalid firmware
Different tools generate slightly different formats of the isight
firmware. Ensure that the firmware buffer is not overrun, while still
ensuring that the correct amount of data is written if trailing data is
present.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Report-by: Justin Mattock <justinmattock@gmail.com>
Tested-by: Justin Mattock <justinmattock@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-06-11 17:06:33 -07:00
..
sisusbvga USB: Spelling fixes 2008-02-01 14:34:57 -08:00
Kconfig USB: fix build bug in USB_ISIGHTFW 2008-06-11 17:06:32 -07:00
Makefile USB: Firmware loader driver for USB Apple iSight camera 2008-05-29 13:59:02 -07:00
adutux.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
appledisplay.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
auerswald.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
berry_charge.c USB: fix memory leak in berry_charge driver 2007-10-12 14:55:20 -07:00
cypress_cy7c63.c USB: cypress_cy7c63: updated contact/usage information 2008-02-01 14:34:50 -08:00
cytherm.c USB: fix read vs. disconnect race in cytherm driver 2007-10-25 12:18:44 -07:00
emi26.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
emi26_fw.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
emi62.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
emi62_fw_m.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
emi62_fw_s.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ftdi-elan.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
idmouse.c USB: fix locking in idmouse 2007-10-25 12:18:44 -07:00
iowarrior.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
isight_firmware.c isight_firmware: Avoid crash on loading invalid firmware 2008-06-11 17:06:33 -07:00
ldusb.c USB: remove PICDEM FS USB demo (04d8:000c) device from ldusb 2008-05-14 10:00:29 -07:00
legousbtower.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
phidget.c USB: Put phidgets driver in a sysfs class 2006-09-27 11:58:49 -07:00
phidget.h USB: Put phidgets driver in a sysfs class 2006-09-27 11:58:49 -07:00
phidgetkit.c USB: Phidget: fix race in device_create 2008-05-20 13:31:56 -07:00
phidgetmotorcontrol.c USB: Phidget: fix race in device_create 2008-05-20 13:31:56 -07:00
phidgetservo.c USB: Phidget: fix race in device_create 2008-05-20 13:31:56 -07:00
rio500.c USB rio500.c: fix check-after-use 2007-10-25 12:18:43 -07:00
rio500_usb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
trancevibrator.c USB: fix error handling in trancevibrator 2008-02-21 15:38:51 -08:00
usb_u132.h Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2006-12-01 16:41:58 -08:00
usblcd.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
usbled.c USB: fix usbled disconnect read race #2 2007-11-28 13:58:33 -08:00
usbtest.c usbtest: comment on why this code "expects" negative and positive errnos 2008-05-14 10:00:29 -07:00
uss720.c [PARPORT] Kill useful 'irq' arg from parport_{generic_irq,ieee1284_interrupt} 2007-10-23 19:53:15 -04:00