grub/grub-core/bus/usb
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
..
serial Add gcc_struct to all packed structures when compiling with mingw. 2013-12-15 14:14:30 +01:00
ehci-fdt.c arm_coreboot: Support EHCI. 2017-05-08 22:15:05 +02:00
ehci-pci.c ehci: Split core code from PCI part. 2017-05-08 22:10:26 +02:00
ehci.c ehci: Fix compilation on i386 2017-07-09 21:31:19 +02:00
ohci.c ohci: fix memory leak 2015-06-20 23:38:19 +03:00
uhci.c uhci: Fix null pointer dereference. 2015-01-24 20:38:12 +01:00
usb.c * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition 2013-09-18 13:27:05 +02:00
usbhub.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
usbtrans.c arm_coreboot: Support EHCI. 2017-05-08 22:15:05 +02:00