]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: avoid invalid free
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 27 Dec 2020 14:46:00 +0000 (15:46 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 29 Dec 2020 01:09:04 +0000 (02:09 +0100)
commite434311dbaf1e79b09ac01dce198499e328549f8
tree957cc2d9e4d7d83fcc8f24fad1ffc74a50e00b41
parent9abb01af749f61de8467de05a27f7262fb1dec7b
efi_loader: avoid invalid free

load_options passed from do_efibootmgr() to do_bootefi_exec() may contain
invalid data from the stack which will lead to an invalid free().

Fixes: 0ad64007feb9 ("efi_loader: set load options in boot manager")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_bootmgr.c