openssl/crypto/rsa
Niels Dossche 8cdba24cee Fix potential memory leaks in error paths in ossl_rsa_multiprime_derive()
There are several cases where new BIGNUM instances are created, not
using the context, but not freed when an error occurs.
Fix this by adding the necessary calls to BN_free().

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26515)
2025-02-25 15:36:43 +01:00
..
build.info Remove RSA SSLv23 padding mode 2021-03-01 10:56:12 +01:00
rsa_acvp_test_params.c Update copyright year 2021-04-08 13:04:41 +01:00
rsa_ameth.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_asn1.c Update copyright year 2021-04-08 13:04:41 +01:00
rsa_backend.c RSA decoder should check also sanity of p, q, e, d ... with respect to n 2024-08-28 16:50:46 +02:00
rsa_chk.c Copyright year updates 2023-09-07 09:59:15 +01:00
rsa_crpt.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
rsa_depr.c
rsa_err.c crypto: updates to pass size_t to RAND_bytes_ex() 2021-06-01 18:13:56 +10:00
rsa_gen.c Fix potential memory leaks in error paths in ossl_rsa_multiprime_derive() 2025-02-25 15:36:43 +01:00
rsa_lib.c Fix potential use-after-free in REF_PRINT_COUNT 2024-12-10 14:58:08 +01:00
rsa_local.h Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_meth.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
rsa_mp.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_mp_names.c rsa: add ossl_ prefix to internal rsa_ calls. 2020-10-07 09:04:51 +10:00
rsa_none.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
rsa_oaep.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_ossl.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_pk1.c Copyright year updates 2023-09-07 09:59:15 +01:00
rsa_pmeth.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_prn.c Update copyright year 2021-07-29 15:41:35 +01:00
rsa_pss.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_saos.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
rsa_schemes.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_sign.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_sp800_56b_check.c Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_sp800_56b_gen.c zeroize rsa->p,rsa->q on error 2024-05-14 15:55:41 +02:00
rsa_x931.c Copyright year updates 2024-09-05 09:35:49 +02:00
rsa_x931g.c Copyright year updates 2023-09-07 09:59:15 +01:00