[openssl/openssl] 44cea9: Fix error handling in CRYPTO_get_ex_new_index
Bernd Edlinger
noreply at github.com
Thu Sep 21 12:48:36 UTC 2023
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: 44cea98d9006b08941e24c18d6eedbd01c3775c7
https://github.com/openssl/openssl/commit/44cea98d9006b08941e24c18d6eedbd01c3775c7
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: 2023-09-21 (Thu, 21 Sep 2023)
Changed paths:
M crypto/ex_data.c
Log Message:
-----------
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 at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22149)
(cherry picked from commit d4f22a915ac50570015a23ad794032c4fb9496cb)
More information about the openssl-commits
mailing list