diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2014-12-29 20:37:45 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-01-03 23:58:23 +0100 |
commit | 3cb56e934f9e52597cb70caea3aa6c84f192d445 (patch) | |
tree | e1b6bbc629e153e1613ff1e8e62f6ae8d954fa19 /src/include/device/pci_rom.h | |
parent | 8180d1a22f54f2a792c9187d98d15b2501d35aa7 (diff) |
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>
Diffstat (limited to 'src/include/device/pci_rom.h')
0 files changed, 0 insertions, 0 deletions