[openssl/openssl] d4f22a: Fix error handling in CRYPTO_get_ex_new_index

Bernd Edlinger noreply at github.com
Thu Sep 21 12:46:28 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: d4f22a915ac50570015a23ad794032c4fb9496cb
      https://github.com/openssl/openssl/commit/d4f22a915ac50570015a23ad794032c4fb9496cb
  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)




More information about the openssl-commits mailing list