]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a memleak in prepare_rsa_params
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 11 Sep 2023 10:34:02 +0000 (12:34 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 13 Sep 2023 05:46:46 +0000 (07:46 +0200)
commit46def829afa4d8bed8f53d484bdf842d65f0e176
treed2ac63852a46a1bdaa15df07be3b749740759f7b
parent123c85864fa7fe97d8ae3a09989d410501d957a5
Fix a memleak in prepare_rsa_params

This affects only RSA-PSS keys with params using
negative salt legth, or in case of out of memory.
This fixes a memory leak reported in #22049.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22061)
providers/implementations/encode_decode/encode_key2any.c