Re: [PATCH] ieee1275: Null pointer dereference in grub_ieee1275_encode_devname

2019-04-04 Thread Daniel Kiper
On Tue, Apr 02, 2019 at 06:24:07PM +0100, Colin Watson wrote: > On Tue, Apr 02, 2019 at 09:40:31AM -0700, Eric Snowberg wrote: > > Function grub_strndup may return NULL, this is called from function > > grub_ieee1275_get_devname which is then called from function > > grub_ieee1275_encode_devname to

Re: [PATCH] ieee1275: Null pointer dereference in grub_ieee1275_encode_devname

2019-04-02 Thread Colin Watson
On Tue, Apr 02, 2019 at 09:40:31AM -0700, Eric Snowberg wrote: > Function grub_strndup may return NULL, this is called from function > grub_ieee1275_get_devname which is then called from function > grub_ieee1275_encode_devname to set device. The device variable > could then be used with a NULL poi

[PATCH] ieee1275: Null pointer dereference in grub_ieee1275_encode_devname

2019-04-02 Thread Eric Snowberg
Function grub_strndup may return NULL, this is called from function grub_ieee1275_get_devname which is then called from function grub_ieee1275_encode_devname to set device. The device variable could then be used with a NULL pointer. Signed-off-by: Eric Snowberg --- grub-core/kern/ieee1275/openf