coreboot-kgpe-d16/src/device/oprom/realmode
Zhuo-Hao Lee 29445dc44e device/oprom/realmode/x86: Fix memory corruption
The length of the memcpy is incorrect and this will cause the
destination buffer to corrupt the following 2 bytes of data.

BUG=none
BRANCH=All
TEST=build and boot on rambi, system boot up without error

Change-Id: I96adf2555b01aa35bb38a2e0f221fc2b2e87a41b
Signed-off-by: Zhuo-Hao Lee <zhuo-hao.lee@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/237510
Reviewed-by: Ryan Lin <ryan.lin@intel.com>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
[Remove usage of macro `FIELD_SIZEOF(t, f)`.]
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/8227
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Tested-by: build bot (Jenkins)
2015-01-20 14:14:08 +01:00
..
Makefile.inc device,Makefile.inc: Trivial - drop trailing blank lines at EOF 2014-07-17 02:19:57 +02:00
x86.c device/oprom/realmode/x86: Fix memory corruption 2015-01-20 14:14:08 +01:00
x86.h device/oprom/realmode: Sanitize header inclusion 2014-08-08 03:32:13 +02:00
x86_asm.S ramstage: prepare for relocation 2013-03-21 18:01:38 +01:00
x86_interrupts.c device/oprom/realmode: Sanitize header inclusion 2014-08-08 03:32:13 +02:00