[openssl/openssl] bf01af: Fix error handling in lhash contract

Bernd Edlinger noreply at github.com
Thu Sep 21 12:52:38 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: bf01afe9ad625e0ad92c40865192ba4a5a12f20e
      https://github.com/openssl/openssl/commit/bf01afe9ad625e0ad92c40865192ba4a5a12f20e
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-09-21 (Thu, 21 Sep 2023)

  Changed paths:
    M crypto/lhash/lhash.c

  Log Message:
  -----------
  Fix error handling in lhash contract

When the realloc fails in contract, this not a fatal
error, since the memory is only shrinked. It is also no
option to exit the function at this point, since that
would leave the hash table in an inconsistent state.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22154)

(cherry picked from commit 5fbfd641aeebdf4b29a0749e13a79a1e59502878)




More information about the openssl-commits mailing list