openssl/crypto/pkcs12
Jiasheng Jiang f60b3c5fdc crypto/pkcs12/p12_mutl.c: Add check and EVP_MD_free() for EVP_MD_fetch()
Add check and EVP_MD_free() for EVP_MD_fetch() to avoid NULL pointer
dereference and memory leak, like "md_fetch".

Fixes: fe79159be0 ("Implementation of the RFC 9579, PBMAC1 in PKCS#12")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@outlook.com>

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25370)
2024-09-05 17:30:28 +02:00
..
build.info
p12_add.c Copyright year updates 2024-04-09 13:43:26 +02:00
p12_asn.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_attr.c
p12_crpt.c
p12_crt.c Copyright year updates 2024-09-05 09:35:49 +02:00
p12_decr.c Copyright year updates 2024-04-09 13:43:26 +02:00
p12_init.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_key.c Copyright year updates 2024-09-05 09:35:49 +02:00
p12_kiss.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_local.h Copyright year updates 2023-09-07 09:59:15 +01:00
p12_mutl.c crypto/pkcs12/p12_mutl.c: Add check and EVP_MD_free() for EVP_MD_fetch() 2024-09-05 17:30:28 +02:00
p12_npas.c p12_npas.c: Remove call with unused return value 2024-06-28 09:12:03 +02:00
p12_p8d.c
p12_p8e.c
p12_sbag.c Copyright year updates 2023-09-07 09:59:15 +01:00
p12_utl.c Copyright year updates 2023-09-07 09:59:15 +01:00
pk12err.c Copyright year updates 2023-09-07 09:59:15 +01:00