coreboot-kgpe-d16/src/arch
Ryan Salsamendi 1b5eda0233 arch/x86/smbios: Fix undefined behavior
Fixes report found by undefined behavior sanitizer. Dereferencing a
pointer that's not aligned to the size of access is undefined behavior.
The report triggered for smbios_cpu_vendor(). Also fixes the same issue
in smbios_processor_name() found by inspection.

Change-Id: I1b7d08655edce729e107a5b6e61ee509ebde33b6
Signed-off-by: Ryan Salsamendi <rsalsamendi@hotmail.com>
Reviewed-on: https://review.coreboot.org/20154
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
2017-06-20 03:15:48 +02:00
..
arm arch/arm/include/armv7/arch: Correct keyword organization in cpu.h 2017-06-02 18:31:03 +02:00
arm64 arch/arm: Correct checkpatch errors 2017-06-02 18:30:53 +02:00
mips arch: Unify basic cache clearing API 2017-05-30 22:19:50 +02:00
power8 arch: Unify basic cache clearing API 2017-05-30 22:19:50 +02:00
riscv src: change coreboot to lowercase 2017-06-07 12:09:15 +02:00
x86 arch/x86/smbios: Fix undefined behavior 2017-06-20 03:15:48 +02:00