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 pointer.

Makes sense to me, and the handling matches how the
immediately-following possible grub_malloc failure is handled.

Reviewed-by: Colin Watson <[email protected]>

-- 
Colin Watson                                       [[email protected]]

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to