grub2/grub-core/tests
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
..
boot
lib strtoull: Fix behaviour on chars between '9' and 'a'. 2017-05-03 12:59:58 +02:00
bswap_test.c
checksums.h Regenerate checksum.h with newer unifont. 2017-08-30 17:12:04 +02:00
cmdline_cat_test.c core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
cmp_test.c
ctz_test.c
div_test.c
example_functional_test.c
fake_input.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
gfxterm_menu.c core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
legacy_password_test.c
mul_test.c
pbkdf2_test.c
setjmp_test.c i386, x86_64, ppc: fix switch fallthrough cases with GCC7 2017-04-04 19:23:55 +03:00
shift_test.c
signature_test.c
signatures.h
sleep_test.c arm: Ignore qemu clock bug 2016-01-22 10:12:43 +01:00
strtoull_test.c misc: Make grub_strtol() "end" pointers have safer const qualifiers 2020-02-28 12:41:29 +01:00
test_blockarg.c
video_checksum.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
videotest_checksum.c
xnu_uuid_test.c