grub/grub-core/efiemu
Peter Jones f725fa7cb2 calloc: Use calloc() at most places
This modifies most of the places we do some form of:

  X = malloc(Y * Z);

to use calloc(Y, Z) instead.

Among other issues, this fixes:
  - allocation of integer overflow in grub_png_decode_image_header()
    reported by Chris Coulson,
  - allocation of integer overflow in luks_recover_key()
    reported by Chris Coulson,
  - allocation of integer overflow in grub_lvm_detect()
    reported by Chris Coulson.

Fixes: CVE-2020-14308

Signed-off-by: Peter Jones <pjones@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-07-29 16:55:47 +02:00
..
i386 smbios: Add a module for retrieving SMBIOS information 2019-07-11 21:06:12 +02:00
runtime asm: Replace "__asm__ __volatile__" with "asm volatile" 2019-03-12 20:04:07 +01:00
loadcore.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
loadcore32.c automake commit without merge history 2010-05-06 11:34:04 +05:30
loadcore64.c automake commit without merge history 2010-05-06 11:34:04 +05:30
loadcore_common.c Efiemu stylistic fixes and gettext. 2012-02-12 18:43:39 +01:00
main.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
mm.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
pnvram.c misc: Make grub_strtol() "end" pointers have safer const qualifiers 2020-02-28 12:41:29 +01:00
prepare.c efiemu: check return value of grub_efiemu_write_value 2016-01-09 11:36:42 +03:00
prepare32.c automake commit without merge history 2010-05-06 11:34:04 +05:30
prepare64.c automake commit without merge history 2010-05-06 11:34:04 +05:30
symbols.c Efiemu stylistic fixes and gettext. 2012-02-12 18:43:39 +01:00