]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/ieee1275/openfw: Add missing grub_strdup() failure checks
authorAvnish Chouhan <avnish@linux.ibm.com>
Mon, 10 Nov 2025 14:57:19 +0000 (20:27 +0530)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Nov 2025 11:49:31 +0000 (12:49 +0100)
commitf0170c21777ef42ec0d011da8a50ee970eae7cdd
treeec9a8f6e6db6bf6affd5e6e7b2077e7fa15ab53f
parent3a66437054e5bd94a02389db72d1f6ce40ca229a
kern/ieee1275/openfw: Add missing grub_strdup() failure checks

If grub_strdup() fails, it returns NULL and passing NULL further down to
the code can lead to segmentation fault or an undefined behavior.

Signed-off-by: Avnish Chouhan <avnish@linux.ibm.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/ieee1275/openfw.c