coreboot-kgpe-d16/payloads/libpayload/drivers/usb
Patrick Georgi 3cb56e934f libpayload: avoid memory overflows
With commands typically shorter than the buffer they're
copied to, copy cmdlen bytes, cut off by the buffer limit.

Change-Id: Ia9d2663bd145eff4538084ac1ef8850cfbcea924
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Found-by: Coverity Scan
Reviewed-on: http://review.coreboot.org/7977
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
2015-01-03 23:58:23 +01:00
..
TODO
ehci.c libpayload: usb: Fix up usb_shutdown() code paths 2014-11-13 06:22:45 +01:00
ehci.h
ehci_private.h
ehci_rh.c libpayload: usb: Fix up usb_shutdown() code paths 2014-11-13 06:22:45 +01:00
generic_hub.c
generic_hub.h
ohci.c libpayload: usb: Remove automatic clear_stall() calls from transfers 2014-11-13 06:22:58 +01:00
ohci.h
ohci_private.h libpayload: usb: Make OHCI work with ARM systems 2014-10-22 23:53:54 +02:00
ohci_rh.c libpayload: usb: Fix up usb_shutdown() code paths 2014-11-13 06:22:45 +01:00
quirks.c
uhci.c libpayload: usb: Remove automatic clear_stall() calls from transfers 2014-11-13 06:22:58 +01:00
uhci.h
uhci_private.h
uhci_rh.c libpayload: usb: Fix up usb_shutdown() code paths 2014-11-13 06:22:45 +01:00
usb.c libpayload: usb: Try to avoid reusing device addresses 2014-12-22 21:44:43 +01:00
usb_dev.c
usbhid.c
usbhub.c
usbinit.c libpayload: Clean up USB build warnings 2014-12-30 19:07:47 +01:00
usbmsc.c libpayload: avoid memory overflows 2015-01-03 23:58:23 +01:00
xhci.c libpayload: Fix pointer related casts 2014-12-31 18:57:35 +01:00
xhci.h
xhci_commands.c
xhci_debug.c
xhci_devconf.c
xhci_events.c
xhci_private.h libpayload: usb: xhci: Fix TD size if it overflows 5 bits 2014-12-31 04:45:43 +01:00
xhci_rh.c libpayload: usb: xhci: Treat port reset as a port status change 2014-10-02 17:29:54 +02:00