]> 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:44 +0000 (15:18 +0100)
commit805f7eb33f1e7b3e82b4e5c5e0007c4e55e49d98
treee9a6ff033d67593c0d17a0abeb2c0fdc779841f4
parentedd10c8a326744862d47078de6b8be48002dcf8f
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