coreboot-kgpe-d16/src
Jacob Garber f2ba2d9421 arch/x86: Use ssize_t to store length
size_t is the wrong type to store the return value of
acpi_device_path_fill(), since any negative error values will be
converted to a very large unsigned integer and potentially cause
buffer overflow.

Change-Id: Ia8ed62ecfac8eaa18a61545bd203b3c7a7cd9ca5
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1402095
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33962
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2019-07-07 20:25:12 +00:00
..
acpi
arch arch/x86: Use ssize_t to store length 2019-07-07 20:25:12 +00:00
commonlib commonlib/storage: use ALIGN_UP instead of ALIGN for better readability 2019-06-21 12:49:43 +00:00
console console: Implement j specifier in vtxprintf() 2019-07-04 21:45:58 +00:00
cpu arch/x86: Adjust size of postcar stack 2019-07-04 06:53:12 +00:00
device device/pci: Declare pci_root_bus() 2019-07-07 20:04:44 +00:00
drivers drivers/amd/agesa: Drop redundant stack allocation 2019-07-07 20:24:39 +00:00
ec src/ec: Use 'include <stdlib.h>' when appropriate 2019-06-22 17:54:31 +00:00
include device/pci: Declare pci_root_bus() 2019-07-07 20:04:44 +00:00
lib src/security/vboot: Add option to skip display init with vboot 2.0 2019-07-07 20:09:24 +00:00
mainboard mb/google/hatch/var/kindred: Add Raydium touchscreen support 2019-07-07 20:02:40 +00:00
northbridge cpu/x86: Fix MSR_PLATFORM_INFO definition 2019-07-07 09:38:06 +00:00
security src/security/vboot: Add option to skip display init with vboot 2.0 2019-07-07 20:09:24 +00:00
soc soc/intel/icelake: Remove redundant gpio.c from Makefile.inc 2019-07-07 13:23:46 +00:00
southbridge sb/intel/common: Use correct bitwise operator 2019-07-04 08:04:01 +00:00
superio nuvoton/early_serial: improve comments on serial pinmux settings 2019-06-22 11:39:12 +00:00
vendorcode add ctype.h header 2019-06-24 21:15:14 +00:00
Kconfig arch/x86: Clean up PIRQ_ROUTE 2019-07-07 20:03:55 +00:00