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
..
2019-03-12 20:04:07 +01:00
2017-08-14 16:24:05 +02:00
2017-05-03 13:03:50 +02:00
2019-02-25 14:01:59 +01:00
2019-02-25 14:01:59 +01:00
2016-10-27 16:22:06 +02:00
2018-03-05 13:44:55 +01:00
2010-08-17 19:03:22 +05:30
2017-08-07 18:33:29 +02:00
2012-02-26 19:10:52 +01:00
2019-06-07 15:37:55 +02:00
2019-09-23 13:17:15 +02:00
2011-10-01 22:51:12 +02:00
2013-12-17 14:45:46 +01:00
2019-03-25 15:14:52 +01:00
2017-05-08 22:06:04 +02:00
2019-02-25 11:28:44 +01:00
2010-08-17 19:03:22 +05:30
2019-04-09 10:03:29 +10:00
2018-11-09 13:25:31 +01:00
2015-12-15 10:25:34 +03:00
2012-03-04 14:55:13 +01:00
2020-03-10 21:40:06 +01:00
2010-08-28 14:52:25 +02:00
2010-08-29 13:45:36 +02:00
2011-11-30 16:20:13 +01:00
2017-05-08 22:06:04 +02:00
2010-08-17 19:03:22 +05:30
2016-02-12 12:39:38 +01:00
2010-09-24 14:05:47 +02:00
2010-08-17 19:03:22 +05:30
2010-09-13 12:16:22 +02:00
2010-08-17 19:03:22 +05:30
2013-12-18 05:28:05 +01:00
2011-11-30 16:20:13 +01:00
2020-07-29 16:55:47 +02:00
2017-05-08 22:15:05 +02:00