Srish Srinivasan
fa93f2412b
kern/command,commands/extcmd: Perform explicit NULL check in both the unregister helpers
...
During command registration, grub_register_command_prio() returns
a 0 when there is a failure in memory allocation. In such a situation,
calls to grub_unregister_{command(), extcmd()} during command
unregistration will result in dereferencing a NULL pointer.
Perform explicit NULL check in both unregister helpers to prevent
undefined behaviour due to a NULL pointer dereference.
Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-10-11 15:36:54 +02:00
..
2025-10-11 15:36:53 +02:00
2013-01-20 15:52:15 +00:00
2025-10-11 15:36:54 +02:00
2024-10-10 13:09:06 +02:00
2024-11-28 22:37:50 +01:00
2022-03-14 15:44:26 +01:00
2025-06-17 14:12:50 +02:00
2013-12-21 03:03:31 +01:00
2025-03-05 21:24:47 +01:00
2022-03-14 15:44:26 +01:00
2025-08-14 21:20:01 +02:00
2022-07-04 14:43:25 +02:00
2025-09-04 14:37:20 +02:00
2022-06-07 16:39:31 +02:00
2022-03-14 15:44:26 +01:00
2022-03-14 15:44:26 +01:00
2022-03-14 15:44:26 +01:00
2023-01-10 16:32:42 +01:00
2012-10-12 15:34:33 +01:00
2020-02-28 12:41:29 +01:00
2022-03-14 15:44:26 +01:00
2013-06-07 18:40:37 +02:00
2025-10-11 15:36:54 +02:00
2013-12-17 14:39:48 +01:00
2013-12-17 14:39:48 +01:00
2025-02-26 19:34:57 +01:00
2015-01-25 16:36:30 +03:00
2015-01-24 20:52:02 +01:00
2022-03-14 15:44:26 +01:00
2025-07-11 23:12:50 +02:00
2022-03-14 15:44:26 +01:00
2022-11-14 17:37:51 +01:00
2025-02-13 15:45:56 +01:00
2021-03-02 15:54:15 +01:00
2022-03-14 15:44:26 +01:00
2020-04-21 22:08:52 +02:00
2025-09-04 14:37:20 +02:00
2022-07-04 14:43:25 +02:00
2025-03-05 21:24:48 +01:00
2022-03-14 15:44:26 +01:00
2015-12-15 10:25:34 +03:00
2022-03-14 15:44:26 +01:00
2022-06-07 12:51:50 +02:00
2025-02-13 15:45:56 +01:00
2023-03-07 15:26:36 +01:00
2025-09-04 14:37:20 +02:00
2025-05-06 17:14:03 +02:00
2022-03-14 15:44:26 +01:00
2022-11-14 17:17:21 +01:00
2022-03-14 15:44:26 +01:00
2012-02-08 19:26:01 +01:00
2020-02-28 12:41:29 +01:00
2025-10-11 15:36:34 +02:00
2023-06-01 11:45:00 +02:00
2025-02-13 15:45:56 +01:00
2011-12-13 15:13:51 +01:00
2023-07-03 14:10:01 +02:00
2012-02-03 11:46:18 +01:00
2012-02-03 11:46:18 +01:00
2012-02-03 11:46:18 +01:00
2025-05-06 17:14:02 +02:00
2025-05-06 17:14:04 +02:00
2021-09-06 15:08:23 +02:00
2020-04-21 22:13:44 +02:00
2020-03-10 21:35:02 +01:00
2015-01-24 21:23:25 +01:00
2022-03-14 15:44:26 +01:00
2025-02-13 15:45:56 +01:00
2022-07-04 14:43:25 +02:00
2018-11-09 13:25:31 +01:00
2012-02-12 15:25:25 +01:00
2024-10-10 13:04:37 +02:00
2015-01-24 21:25:42 +01:00
2012-03-03 12:59:28 +01:00
2019-04-23 11:37:08 +02:00
2023-08-14 18:04:04 +02:00
2022-03-14 15:44:26 +01:00
2022-03-14 15:44:26 +01:00
2025-07-11 23:12:50 +02:00