]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: illegal free in EFI_LOAD_FILE2_PROTOCOL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Oct 2020 10:50:52 +0000 (12:50 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 6 Oct 2020 05:43:56 +0000 (07:43 +0200)
commitc84995478cf34e4424afefb05454e456fc4c121c
tree95c4edcf449a87e73b1ac16658dc125451a22cbc
parent2ec5941a13db2e4d19a8cc431b426078f24be8b7
efi_loader: illegal free in EFI_LOAD_FILE2_PROTOCOL

strsep() changes the address that its first argument points to.
We cannot use the changed address as argument of free().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_load_initrd.c