grub/grub-core/bus
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
..
emu remove extra newlines in grub_util_* strings 2015-05-13 09:47:17 +03:00
i386/ieee1275 On i386-ieee1275 we run in paged mode. So we need to explicitly map 2013-11-18 04:32:33 +01:00
spi rk3288_spi: Add SPI driver 2017-05-09 08:44:23 +02:00
usb calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
bonito.c Add bonito 3A support. 2013-12-17 22:49:27 +01:00
cs5536.c Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
fdt.c fdtbus: Add ability to send/receive messages on parent busses. 2017-05-09 08:43:20 +02:00
pci.c Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00