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
..
2013-01-12 13:30:37 +00:00
2020-05-25 15:00:56 +02:00
2010-09-15 14:46:53 +02:00
2017-12-06 12:55:55 +01:00
2013-08-14 10:56:55 +02:00
2013-12-14 21:50:36 +01:00
2020-02-18 15:16:02 +01:00
2013-11-23 12:42:30 +01:00
2020-07-29 16:55:47 +02:00
2013-12-21 18:08:25 +01:00
2019-03-05 10:23:47 +01:00
2020-07-29 16:55:47 +02:00
2020-07-29 16:55:47 +02:00
2014-06-21 20:26:47 +02:00
2013-11-29 12:19:36 +00:00
2013-12-21 18:08:25 +01:00
2020-07-29 16:55:47 +02:00
2020-07-29 16:55:47 +02:00
2016-02-12 15:46:05 +01:00
2015-03-04 01:00:19 +01:00
2013-11-11 22:48:43 +01:00
2013-10-13 20:36:28 +02:00
2019-10-28 15:38:48 +01:00
2019-10-28 15:35:40 +01:00
2017-01-31 22:32:21 +01:00
2018-12-12 12:03:27 +01:00
2018-12-12 12:03:27 +01:00
2019-03-05 10:23:47 +01:00
2020-07-29 16:55:47 +02:00
2016-01-09 14:13:36 +03:00
2019-02-25 14:02:05 +01:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2020-07-29 16:55:47 +02:00
2020-07-29 16:55:47 +02:00
2015-12-31 13:09:15 +01:00
2015-12-31 13:09:15 +01:00
2019-03-25 15:08:49 +01:00
2018-09-12 13:24:36 +02:00
2019-04-09 10:03:29 +10:00
2020-07-29 16:55:47 +02:00
2020-07-29 16:55:47 +02:00
2018-09-13 11:01:10 +02:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2016-02-12 15:46:05 +01:00
2019-03-05 10:48:12 +01:00
2015-03-04 01:00:19 +01:00
2014-01-25 21:49:41 +04:00
2013-11-07 06:35:50 +01:00
2012-03-10 20:47:12 +01:00
2016-01-05 21:10:27 +01:00
2019-02-25 14:02:05 +01:00
2015-03-04 01:00:19 +01:00
2015-03-04 01:00:19 +01:00
2016-01-09 13:55:18 +03:00
2013-10-15 16:16:04 +02:00
2013-10-15 16:16:04 +02:00
2019-07-18 14:33:16 +02:00
2013-01-21 14:55:30 +01:00