grub/grub-core/lib/libgcrypt/cipher
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
..
ac.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
arcfour.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
bithelp.h automake commit without merge history 2010-05-06 11:34:04 +05:30
blowfish.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
bufhelp.h libgcrypt: Import replacement CRC operations 2018-02-23 22:37:36 +01:00
camellia-glue.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
camellia.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
camellia.h Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
cast5.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
ChangeLog Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
ChangeLog-2011 Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
cipher.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
crc.c libgcrypt: Import replacement CRC operations 2018-02-23 22:37:36 +01:00
des.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
dsa.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
ecc.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
elgamal.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
hash-common.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
hash-common.h Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
hmac-tests.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
idea.c * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed 2013-11-08 18:10:07 +01:00
kdf.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
Makefile.am Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
Manifest Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
md.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
md4.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
md5.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
primegen.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
pubkey.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
rfc2268.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
rijndael-tables.h Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
rijndael.c Make rijndael.c respect aliasing rules. 2013-12-24 16:57:28 +01:00
rmd.h Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
rmd160.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
rsa.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
seed.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
serpent.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
sha1.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
sha256.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
sha512.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
test-getrusage.c Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
tiger.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
twofish.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
whirlpool.c Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00