bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/1] efi: avoid NULL dereference if FilePath is NULL


From: Daniel Kiper
Subject: Re: [PATCH 1/1] efi: avoid NULL dereference if FilePath is NULL
Date: Thu, 18 Apr 2019 12:37:06 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Apr 17, 2019 at 07:12:56AM +0200, Heinrich Schuchardt wrote:
> 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 <address@hidden>
> Reviewed-by: Leif Lindholm <address@hidden>

Reviewed-by: Daniel Kiper <address@hidden>

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]