]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix error handling in CRYPTO_get_ex_new_index
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 19 Sep 2023 18:15:18 +0000 (20:15 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 21 Sep 2023 12:43:08 +0000 (14:43 +0200)
commitd4f22a915ac50570015a23ad794032c4fb9496cb
treeb25c78aa773b755542ed718f77fa351db54b87e9
parent8c040c086ca11a519975c58961a5dc933aa6524a
Fix error handling in CRYPTO_get_ex_new_index

If an out of memory error happens when the index zero
is reserved in a newly created ip->meth stack object,
that reservation is not done in a second attempt, which makes
various X_set_ex_data overwrite the value of X_set_app_data.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22149)
crypto/ex_data.c