coreboot-kgpe-d16/payloads/libpayload/libc
Jeremy Compostella 5b8987ae46 libpayload: Support unaligned pointer for memcpy, memmove and memcmp
The memcpy(), memmove() and memcmp() functions use word by word
operations regardless of the pointer alignment.  Depending on the
platform, this could lead to a crash.

This patch makes the memcpy(), memmove() or memcmp() operate byte per
byte if they are supplied with unaligned pointers.

Change-Id: I0b668739b7b58d47266f10f2dff2dc9cbf38577e
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/20535
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2017-07-13 18:16:15 +00:00
..
64bit_div.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
Makefile.inc libpayload: Add support for handling fmaps 2015-07-14 18:12:06 +02:00
args.c
console.c libpayload/libc/console: Flush input driver buffer on init 2017-04-19 19:19:56 +02:00
coreboot.c libpayload: Add VPD address into lib_sysinfo 2017-01-13 17:40:10 +01:00
ctype.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
die.c
exec.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
fmap.c libpayload: Add support for handling fmaps 2015-07-14 18:12:06 +02:00
getopt_long.c
hexdump.c
ipchecksum.c
lib.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
libgcc.c lib: Unify log2() and related functions 2015-06-05 13:18:55 +02:00
malloc.c payloads: change coreboot to lowercase 2017-06-07 12:08:55 +02:00
memory.c libpayload: Support unaligned pointer for memcpy, memmove and memcmp 2017-07-13 18:16:15 +00:00
printf.c libpayload: fix printf handling of unsigned long long 2014-12-30 20:54:23 +01:00
qsort.c
rand.c
readline.c
string.c libpayload: Fix strtok_r 2016-09-08 21:11:34 +02:00
strlcpy.c
sysinfo.c
time.c libpayload: Fix compile error in time.c if nvram support is disabled 2015-08-10 18:10:00 +02:00