coreboot-kgpe-d16/src/arch/x86
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
..
acpi tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
include arch/x86/acpigen: Add additional opcodes 2017-06-08 11:40:31 +02:00
acpi.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
acpi_device.c arch/x86/acpi: Allow "transparent" ACPI device names 2017-04-17 22:53:14 +02:00
acpi_s3.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
acpigen.c x86/acpigen: Fix BufferSize of ResourceTemplate 2017-04-18 16:03:32 +02:00
acpigen_dsm.c arch/x86/acpigen: Fix acpigen for If (Lequal (...)) 2016-11-16 01:08:06 +01:00
assembly_entry.S vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-28 22:18:13 +02:00
boot.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
bootblock.ld tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bootblock_crt0.S arch/x86: Support "weak" BIST and timestamp save routines 2016-06-11 19:22:42 +02:00
bootblock_normal.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
bootblock_romcc.S arch/x86: Rename bootblock.S to bootblock_romcc.S 2016-01-30 03:11:12 +01:00
bootblock_simple.c vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-28 22:18:13 +02:00
c_start.S ramstage: Align stack to 16 bytes 2017-03-19 21:38:53 +01:00
car.ld commonlib: Move drivers/storage into commonlib/storage 2017-05-12 18:20:33 +02:00
cbfs_and_run.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
cbmem.c CBMEM: Clarify CBMEM_TOP_BACKUP function usage 2017-05-27 13:54:47 +02:00
cpu.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
cpu_common.c arch/x86: add missing license headers 2016-01-14 23:37:06 +01:00
crt0_romcc_epilogue.inc src/arch: Update license headers missing paragraph 2 2016-01-26 04:44:20 +01:00
ebda.c arch/x86/ebda: Change memcpy() to endian wrappers 2017-06-20 03:13:18 +02:00
exception.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
exit_car.S soc/intel/apollolake: allow ApolloLake SoC to use FSP CAR Init 2016-12-21 00:11:24 +01:00
failover.ld arch/x86: rename reset_vector -> _start 2016-03-04 01:16:05 +01:00
gdt.c arch/x86: Fix space issues detected by checkpatch 2017-03-17 03:17:39 +01:00
id.ld arch/x86: add missing license headers 2016-01-14 23:37:06 +01:00
id.S arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
ioapic.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig CBMEM: Add config CBMEM_TOP_BACKUP 2017-05-18 06:47:34 +02:00
Makefile.inc Remove libverstage as separate library and source file class 2017-03-28 22:18:53 +02:00
memcpy.c arch/x86: add missing license headers 2016-01-14 23:37:06 +01:00
memlayout.ld arch/x86: introduce postcar stage/phase 2016-03-23 14:24:30 +01:00
memmove.c arch/x86: Fix space issues detected by checkpatch 2017-03-17 03:17:39 +01:00
memset.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
mmap_boot.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
mpspec.c arch/x86: Fix most of remaining issues detected by checkpatch 2017-03-20 16:36:24 +01:00
pci_ops_conf1.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
pci_ops_mmconf.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
pirq_routing.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
postcar.c drivers/intel/fsp2_0: add FSP TempRamInit & TempRamExit API support 2016-12-21 00:10:22 +01:00
postcar_loader.c postcar_loader: Support LATE_CBMEM_INIT boards 2016-12-09 23:54:34 +01:00
prologue.inc tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
rdrand.c arch/x86: add functions to generate random numbers 2017-02-20 04:46:10 +01:00
romcc_console.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbios.c arch/x86/smbios: Fix undefined behavior 2017-06-20 03:15:48 +02:00
stages.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tables.c arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00
thread.c arch/x86: Fix space issues detected by checkpatch 2017-03-17 03:17:39 +01:00
thread_switch.S tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timestamp.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
verstage.c vboot: Remove CHIPSET_PROVIDES_VERSTAGE_MAIN_SYMBOL Kconfig option 2017-03-28 22:14:03 +02:00
wakeup.S arch/x86: remove .intel_syntax 2016-01-23 17:01:44 +01:00
walkcbfs.S arch/x86: Wrap lines at 80 columns 2017-03-17 03:18:24 +01:00