u-boot-brain/common
Konrad Beckmann f1c85688ab image-sig: Ensure that hashed-nodes is null-terminated
A specially crafted FIT image leads to memory corruption in the stack
when using the verified boot feature. The function fit_config_check_sig
has a logic error that makes it possible to write past the end of the
stack allocated array node_inc. This could potentially be used to bypass
the signature check when using verified boot.

This change ensures that the number of strings is correct when counted.

Signed-off-by: Konrad Beckmann <konrad.beckmann@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-11-16 16:52:01 -05:00
..
eeprom
init
spl spl: fix debug prints for tiny printf 2018-11-09 10:44:50 -05:00
autoboot.c
avb_verify.c avb_verify: support using OP-TEE TA AVB 2018-10-07 11:07:25 -04:00
bedbug.c
board_f.c arm: at91: wdt: Convert watchdog driver to dm/dt 2018-11-16 13:34:34 -05:00
board_info.c
board_r.c configs: drop CONFIG_SYS_EXTRA_ENV_RELOC 2018-10-06 09:04:18 -04:00
boot_fit.c
bootm_os.c bootm: Add board specific OS preboot hook 2018-10-10 13:35:09 -04:00
bootm.c sandbox: Fix set_working_fdt_addr users 2018-09-26 15:03:12 +02:00
bootretry.c
bootstage.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bouncebuf.c
cli_hush.c
cli_readline.c cli: handle getch error 2018-09-10 20:20:34 -04:00
cli_simple.c
cli.c
command.c
common_fit.c common: Compile error with CONFIG_MULTI_DTB_FIT and not SPL 2018-11-09 10:44:50 -05:00
console.c console: unify fgetc function when console MUX is deactivated 2018-09-10 20:20:34 -04:00
cros_ec.c cros: Adjust board_get_cros_ec_dev() to return a udevice 2018-10-09 04:40:27 -06:00
ddr_spd.c
dfu.c
dlmalloc.c
dlmalloc.src
edid.c
exports.c
fdt_support.c Remove <inttypes.h> includes and PRI* usages in printf() entirely 2018-09-10 20:48:17 -04:00
flash.c
hash.c
hwconfig.c
image-android-dt.c common: Add support for Android DT image 2018-08-20 07:21:29 -04:00
image-android.c
image-fdt.c sandbox: Fix set_working_fdt_addr users 2018-09-26 15:03:12 +02:00
image-fit.c
image-sig.c image-sig: Ensure that hashed-nodes is null-terminated 2018-11-16 16:52:01 -05:00
image.c tools: add i.MX8/8X image support 2018-10-22 13:01:27 +02:00
iomux.c
iotrace.c
kallsyms.c
Kconfig ARC: Enable DISPLAY_CPUINFO & DISPLAY_BOARDINFO 2018-10-05 16:55:42 +03:00
kgdb_stubs.c
kgdb.c
lcd_console_rotation.c
lcd_console.c
lcd_simplefb.c
lcd.c
log_console.c
log.c sandbox: Add a flag to set the default log level 2018-10-09 04:40:26 -06:00
lynxkdi.c
main.c
Makefile common: build ymodem only on need 2018-11-09 13:45:42 -05:00
malloc_simple.c malloc_simple: calloc: don't call memset if malloc failed 2018-08-24 13:20:19 -04:00
memsize.c
menu.c
miiphyutil.c miiphy: Add function to retrieve MDIO bus list head 2018-10-24 14:45:36 -05:00
s_record.c
splash_source.c
splash.c
stdio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
system_map.c
update.c
usb_hub.c
usb_kbd.c
usb_storage.c blk: Call part_init() in the post_probe() method 2018-11-14 09:16:27 -08:00
usb.c
xyzModem.c