grub2/grub-core/loader/efi
Chris Coulson c5763039a6 Fix a regression caused by "efi: fix some malformed device path arithmetic errors"
This commit introduced a bogus check inside copy_file_path to
determine whether the destination grub_efi_file_path_device_path_t
was valid before anything was copied to it. Depending on the
contents of the heap buffer, this check could fail which would
result in copy_file_path returning early.

Without any error propagated to the caller, make_file_path would
then try to advance the invalid device path node with
GRUB_EFI_NEXT_DEVICE_PATH, which would also fail, returning a NULL
pointer that would subsequently be dereferenced.

Remove the bogus check, and also propagate errors from copy_file_path.

Patch-Name: efi-malformed-device-path-2.patch
2020-07-24 22:44:20 +01:00
..
appleloader.c Declare GRUB_EFI_VENDOR_APPLE_GUID. 2013-12-24 14:14:19 +01:00
chainloader.c Fix a regression caused by "efi: fix some malformed device path arithmetic errors" 2020-07-24 22:44:20 +01:00
fdt.c Forbid the "devicetree" command when Secure Boot is enabled. 2020-03-07 12:21:23 +00:00