grub/grub-core/gfxmenu
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
..
font.c gfxmenu: fix memory leak 2016-01-09 13:55:28 +03:00
gfxmenu.c gfxmenu: fix memory leak 2016-01-12 21:52:50 +03:00
gui_box.c * grub-core/gfxmenu/gui_box.c: Updated to work with area status. 2013-11-08 15:42:38 +04:00
gui_canvas.c * grub-core/gfxmenu/gui_box.c: Updated to work with area status. 2013-11-08 15:42:38 +04:00
gui_circular_progress.c misc: Make grub_strtol() "end" pointers have safer const qualifiers 2020-02-28 12:41:29 +01:00
gui_image.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
gui_label.c Enable -Wformat=2 if it's supported. 2013-12-21 15:28:28 +01:00
gui_list.c Remove potential division by 0 in gfxmenu. 2015-01-21 17:42:15 +01:00
gui_progress_bar.c Remove potential division by 0 in gfxmenu. 2015-01-21 17:42:15 +01:00
gui_string_util.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
gui_util.c automake commit without merge history 2010-05-06 11:34:04 +05:30
icon_manager.c gfxmenu/icon_manager: Fix null pointer dereference. 2015-01-26 09:37:01 +01:00
theme_loader.c misc: Make grub_strtol() "end" pointers have safer const qualifiers 2020-02-28 12:41:29 +01:00
view.c * grub-core/gfxmenu/gui_box.c: Updated to work with area status. 2013-11-08 15:42:38 +04:00
widget-box.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00