coreboot-kgpe-d16/payloads
Marshall Dawson 148a7a60d8 libpayload: Fix unaligned buffer logic in default_memset
Fix an issue when setting an unaligned buffer where n is less
than the difference of the rounded up pointer and the pointer.
This was identified where n=1 was passed.  n was decremented
once, as expected, then decremented again after the while()
evaluated to false.  This resulted in a new n of 4GB.

Change-Id: I862671bbe7efa8d370d0148e22ea55407e260053
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/20655
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
2017-07-20 21:38:14 +00:00
..
bayou payloads: change coreboot to lowercase 2017-06-07 12:08:55 +02:00
coreinfo Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
external payloads: change coreboot to lowercase 2017-06-07 12:08:55 +02:00
libpayload libpayload: Fix unaligned buffer logic in default_memset 2017-07-20 21:38:14 +00:00
nvramcui nvramcui: Use regular `if` over `#if` for `IS_ENABLED` 2017-06-06 23:34:19 +02:00
Kconfig payloads/Kconfig: Add NO_DEFAULT_PAYLOAD 2017-06-07 13:10:48 +02:00
Makefile.inc tint: Fix tint and add Kconfig option 2016-06-28 18:29:48 +02:00