calloc: Make sure we always have an overflow-checking calloc() available
This tries to make sure that everywhere in this source tree, we always have an appropriate version of calloc() (i.e. grub_calloc(), xcalloc(), etc.) available, and that they all safely check for overflow and return NULL when it would occur. Signed-off-by:Peter Jones <pjones@redhat.com> Reviewed-by:
Daniel Kiper <daniel.kiper@oracle.com> Patch-Name: safe-alloc-2.patch
Showing
- grub-core/kern/emu/misc.c 12 additions, 0 deletionsgrub-core/kern/emu/misc.c
- grub-core/kern/emu/mm.c 10 additions, 0 deletionsgrub-core/kern/emu/mm.c
- grub-core/kern/mm.c 40 additions, 0 deletionsgrub-core/kern/mm.c
- grub-core/lib/libgcrypt_wrap/mem.c 9 additions, 2 deletionsgrub-core/lib/libgcrypt_wrap/mem.c
- grub-core/lib/posix_wrap/stdlib.h 7 additions, 1 deletiongrub-core/lib/posix_wrap/stdlib.h
- include/grub/emu/misc.h 1 addition, 0 deletionsinclude/grub/emu/misc.h
- include/grub/mm.h 6 additions, 0 deletionsinclude/grub/mm.h
Please register or sign in to comment