]> 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:19:05 +0000 (15:19 +0100)
commit053bef946396e6ad0c8ef7f959ca58fbb531a62e
treeca99b27f8a2ba050c00f2beab4f5e82cb1b5d6dc
parentf6c2a3717a87529d429c38d19ed9b4204d057353
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