Re: [PATCH] script/execute: Add NULL check for grub_calloc in gettext_append

Daniel Kiper <[email protected]> Sat, 20 Dec 2025 14:11:45 +0100
Newsgroups org.gnu.grub-devel
Message-ID <[email protected]>
On Tue, Dec 02, 2025 at 12:38:45PM +0530, Sridhar Markonda wrote:
> Add a NULL check after grub_calloc in gettext_append to handle allocation errors.
> This prevents using a NULL pointer and stops crashes during string translation.
>
> Signed-off-by: Sridhar Markonda <[email protected]>
> Signed-off-by: Sudhakar Kuppusamy <[email protected]>

Reviewed-by: Daniel Kiper <[email protected]>

Daniel

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