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
..
2011-05-13 16:36:05 +02:00
2013-11-16 17:37:06 +01:00
2016-01-07 21:10:05 +01:00
2017-05-08 20:53:28 +02:00
2025-10-11 15:43:58 +02:00
2010-08-30 00:54:15 +02:00
2025-10-24 20:05:07 +02:00
2025-08-15 00:23:45 +02:00
2013-03-02 15:31:17 +01:00
2025-10-11 15:43:58 +02:00
2022-08-19 23:55:50 +02:00
2025-07-11 23:12:50 +02:00
2025-07-11 23:12:50 +02:00
2025-10-23 19:15:00 +02:00
2024-11-28 21:50:53 +01:00
2024-11-28 21:50:54 +01:00
2024-11-28 21:50:54 +01:00
2023-05-17 12:51:50 +02:00
2021-12-23 01:05:34 +01:00
2025-08-15 00:23:45 +02:00
2025-07-11 23:12:50 +02:00
2025-08-15 00:23:45 +02:00
2019-02-25 11:28:44 +01:00
2013-11-18 10:01:36 +01:00
2025-10-24 20:05:07 +02:00
2017-05-08 19:40:14 +02:00
2025-10-23 19:15:00 +02:00
2016-10-27 16:22:06 +02:00
2025-10-24 20:05:08 +02:00
2021-03-02 15:54:16 +01:00
2025-07-11 23:12:50 +02:00
2022-03-14 15:47:13 +01:00
2025-10-21 13:50:09 +02:00
2025-09-10 01:12:17 +02:00
2013-08-21 21:02:14 +02:00
2018-11-09 13:25:31 +01:00
2011-07-05 20:24:20 +02:00
2025-07-11 23:12:50 +02:00
2012-12-31 17:31:38 +00:00
2025-10-23 19:14:59 +02:00
2025-09-10 01:09:47 +02:00
2023-04-13 15:04:33 +02:00
2015-04-06 19:30:51 +03:00
2025-05-29 15:45:09 +02: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
2025-07-11 23:12:50 +02:00
2025-10-23 19:15:00 +02:00
2025-11-06 17:21:18 +01:00
2012-02-10 12:21:28 +01:00
2013-11-10 20:37:01 +01:00
2025-06-26 18:05:08 +02:00
2025-10-23 19:14:59 +02:00
2022-03-14 15:47:13 +01:00
2022-07-04 14:43:25 +02:00
2016-02-12 12:39:38 +01:00
2022-04-20 18:29:00 +02:00
2025-08-15 00:23:45 +02:00
2023-05-17 12:51:50 +02:00
2022-03-14 15:47:13 +01:00