openssl/crypto/pkcs7
Niels Dossche d8b7a6eae9 Fix potential memory leak in PKCS7_signatureVerify()
Fixes #25594

The code jumps to an error block when EVP_VerifyUpdate fails.
This error block does not free abuf.
In the success path the abuf memory is freed.
Move the free operation to the error block.

CLA: trivial

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25596)
2024-10-07 17:55:13 +02:00
..
bio_pk7.c
build.info
pk7_asn1.c
pk7_attr.c Copyright year updates 2024-09-05 09:35:49 +02:00
pk7_doit.c Fix potential memory leak in PKCS7_signatureVerify() 2024-10-07 17:55:13 +02:00
pk7_lib.c Copyright year updates 2024-09-05 09:35:49 +02:00
pk7_local.h Copyright year updates 2024-09-05 09:35:49 +02:00
pk7_mime.c Copyright year updates 2024-04-09 13:43:26 +02:00
pk7_smime.c {CMS,PKCS7}_verify(): use 'certs' parameter ('-certfile' option) also for chain building 2024-07-17 16:34:53 +02:00
pkcs7err.c