diff options
author | Jeremy Compostella <jeremy.compostella@intel.com> | 2017-07-11 14:08:37 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2017-07-13 18:16:15 +0000 |
commit | 5b8987ae46512b5550d15fafd54b270ec913422d (patch) | |
tree | 4f65b2ff44bbbd736ba976d75390679b5a4acdd8 /util/amdfwtool | |
parent | 4dc9fb026cf1834d5b99baee8f265ad6cebf8fc6 (diff) |
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>
Diffstat (limited to 'util/amdfwtool')
0 files changed, 0 insertions, 0 deletions