coreboot-kgpe-d16/src/console
Jacob Garber 5b9948140f console: Correct printing of hexadecimal integers
Commit b19946cc62 (console: Remove support for printing extra bases)
truncated the digits string to only print integers of up to base 16.
However, that string was also used to print the leading 'x' or 'X' for
hexadecimal integers and is now too short. Fix this to prevent an out
of bounds read.

Change-Id: Iab6470cc88f445f074cf7c0b675346b37f3f2375
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1402999
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34211
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2019-07-10 20:22:40 +00:00
..
console.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
die.c console: Make die() and friends variadic 2019-06-11 17:24:53 +00:00
hw-debug_sink.adb console/hw-debug_sink: Do not cache state of log level 2018-06-07 16:35:20 +00:00
hw-debug_sink.ads
init.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
Kconfig soc/samsung/exynos5420: Disable BOOTBLOCK_CONSOLE 2019-01-16 11:07:11 +00:00
Makefile.inc arch/x86: Replace some uses of SMM_TSEG 2019-07-09 12:44:10 +00:00
post.c post: during post_code, only call elog when enabled 2019-05-22 14:21:42 +00:00
printk.c console: Allow using vprintk() with disabled console 2019-06-11 17:29:02 +00:00
vsprintf.c src/console: Fix coding style 2018-06-04 08:48:33 +00:00
vtxprintf.c console: Correct printing of hexadecimal integers 2019-07-10 20:22:40 +00:00