Re: [PATCH v2] efiemu/loadcore: Add grub_calloc failure check
Daniel Kiper <[email protected]> Thu, 18 Dec 2025 18:32:35 +0100
| Newsgroups | org.gnu.grub-devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Nov 27, 2025 at 02:32:12PM +0530, Avnish Chouhan wrote: > Adding a failure check in grub_calloc(). If grub_calloc fails, > (e.g., due to memory allocation failure), it returns NULL. > Then, using grub_efiemu_elfsyms (which would be NULL) > later will result in a null pointer dereference, > and can cause an undefined behavior. > > Signed-off-by: Avnish Chouhan <[email protected]> > Reviewed-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