[openssl/openssl] 8edc82: 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.1
  Home:   https://github.com/openssl/openssl
  Commit: 8edc82a9f440e1c9fe939945597469e939abd8c6
      https://github.com/openssl/openssl/commit/8edc82a9f440e1c9fe939945597469e939abd8c6
  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