grub/grub-core/osdep/windows
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
..
blocklist.c Mark strings for translation and add remaining ones to exclude list. 2013-12-18 06:50:24 +01:00
config.c Clarify several translatable messages. 2013-12-21 01:41:16 +01:00
cputime.c Move cpu time retrieval to separate grub_util_get_cpu_time_ms 2013-10-15 13:13:53 +02:00
dl.c Decrease number of strings to translate. 2013-12-18 07:26:13 +01:00
emuconsole.c * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0. 2013-12-08 18:16:32 +01:00
getroot.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
hostdisk.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
init.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
password.c Move password-querying (util-version) routines to grub-core/osdep. 2013-10-08 17:51:39 +02:00
platform.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
random.c Move OS-dependent files to grub-core/osdep and document it. 2013-10-08 17:30:22 +02:00
relpath.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
sleep.c * grub-core/osdep/windows/sleep.c: Add missing config.h. 2013-10-08 20:02:07 +02:00