]> git.ipfire.org Git - thirdparty/grub.git/commit
calloc: Make sure we always have an overflow-checking calloc() available
authorPeter Jones <pjones@redhat.com>
Mon, 15 Jun 2020 16:15:29 +0000 (12:15 -0400)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 29 Jul 2020 14:55:47 +0000 (16:55 +0200)
commit64e26162ebfe68317c143ca5ec996c892019f8f8
tree6532c8ed453137356a2cafb3d8add5009a80684f
parent68708c4503018d61dbcce7ac11cbb511d6425f4d
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>
grub-core/kern/emu/misc.c
grub-core/kern/emu/mm.c
grub-core/kern/mm.c
grub-core/lib/libgcrypt_wrap/mem.c
grub-core/lib/posix_wrap/stdlib.h
include/grub/emu/misc.h
include/grub/mm.h