]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential memory leak on failure of ecx_gen_init()
authorNiels Dossche <niels.dossche@ugent.be>
Wed, 20 Nov 2024 18:57:38 +0000 (19:57 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 25 Nov 2024 14:18:57 +0000 (15:18 +0100)
commit3aa4ef5469cd13ee6d9e412ceb12f42ebcdcd390
tree657576753517c0c1b555bf9efd4be30750d59f35
parent0f73f3d9366325a09baeaecfdc22814695905962
Fix potential memory leak on failure of ecx_gen_init()

When ecx_gen_set_params() returns 0, it could have duplicated the memory
for the parameter OSSL_KDF_PARAM_PROPERTIES already in gctx->propq,
leading to a memory leak.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26015)

(cherry picked from commit 98be2e8fb60aaece2e4c3d42e87671fe22c081a2)
providers/implementations/keymgmt/ecx_kmgmt.c