openssl/crypto/cms
Daniel Gustafsson 5efc57caf2 Fix memleak in rsa_cms_sign error path
If the call to X509_ALGOR_set0 fails then the allocated ASN1_STRING
variable passed as parameter leaks.  Fix by explicitly freeing like
how all other codepaths with X509_ALGOR_set0 do.

Fixes #22680

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24868)
2024-09-05 17:04:59 +02:00
..
build.info Drop unnecessary checks of OPENSSL_NO_DH, OPENSSL_NO_DSA and OPENSSL_NO_EC 2020-12-16 11:56:38 +01:00
cms_asn1.c Copyright year updates 2024-09-05 09:35:49 +02:00
cms_att.c Copyright year updates 2024-04-09 13:43:26 +02:00
cms_cd.c Convert ZLIB defines to OPENSSL_NO_ZLIB 2022-10-18 09:30:21 -04:00
cms_dd.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_dh.c Copyright year updates 2024-09-05 09:35:49 +02:00
cms_ec.c Copyright year updates 2023-09-07 09:59:15 +01:00
cms_enc.c cms_enc.c: Include crypto/asn1.h for struct asn1_object_st 2023-10-19 10:15:56 +02:00
cms_env.c Copyright year updates 2024-09-05 09:35:49 +02:00
cms_err.c CMS_add1_signer(): add missing ERR_raise() calls 2023-10-17 22:02:29 +02:00
cms_ess.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_io.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_kari.c cms: remove TODOs 2021-06-02 16:30:15 +10:00
cms_lib.c Copyright year updates 2024-09-05 09:35:49 +02:00
cms_local.h Copyright year updates 2024-09-05 09:35:49 +02:00
cms_pwri.c Copyright year updates 2024-04-09 13:43:26 +02:00
cms_rsa.c Fix memleak in rsa_cms_sign error path 2024-09-05 17:04:59 +02:00
cms_sd.c Copyright year updates 2024-09-05 09:35:49 +02:00
cms_smime.c Copyright year updates 2024-09-05 09:35:49 +02:00