Avnish Chouhan d4f476f08e lib/legacy_parse: Add missing grub_malloc() failure check
This patch adds a NULL check after grub_malloc() call. Missing a failure
check after calling grub_malloc() can lead to undefined behavior. If the
allocation fails and returns NULL subsequent dereferencing or writing to
the pointer will likely result in a runtime error such as a segmentation
fault.

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>
2025-11-06 17:21:18 +01:00
..
2017-05-08 20:53:28 +02:00
2024-11-28 21:50:53 +01:00
2021-12-23 01:05:34 +01:00
2019-02-25 11:28:44 +01:00
2016-10-27 16:22:06 +02:00
2022-03-14 15:47:13 +01:00
2012-02-26 18:09:07 +01:00
2022-03-14 15:47:13 +01:00
2013-12-18 05:28:05 +01:00
2016-02-12 12:39:38 +01:00
2023-05-17 12:51:50 +02:00