grub/grub-core/kern/efi
Heinrich Schuchardt 7195688f47 efi: Avoid NULL dereference if FilePath is NULL
The UEFI specification allows LoadImage() to be called with a memory
location only and without a device path. In this case FilePath will not be
set in the EFI_LOADED_IMAGE_PROTOCOL.

So in function grub_efi_get_filename() the device path argument may be
NULL. As we cannot determine the device path in this case just return NULL
from the function.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-09-21 20:05:48 -04:00
..
acpi.c tsc: Use alternative delay sources whenever appropriate. 2015-11-27 11:39:55 +01:00
efi.c efi: Avoid NULL dereference if FilePath is NULL 2020-09-21 20:05:48 -04:00
fdt.c efi: Move fdt helper into own file 2016-11-24 10:09:24 +01:00
init.c efi: Free malloc regions on exit 2020-09-21 12:16:25 -04:00
mm.c arm64/efi: Fix grub_efi_get_ram_base() 2020-09-21 16:43:54 -04:00
tpm.c Remove the deprecated 'Event' struct 2017-11-08 09:45:39 +00:00