the following patch was just integrated into master: commit 3cb56e934f9e52597cb70caea3aa6c84f192d445 Author: Patrick Georgi patrick@georgi-clan.de Date: Mon Dec 29 20:37:45 2014 +0100
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
See http://review.coreboot.org/7977 for details.
-gerrit