[openssl/openssl] dbc819: Fix a possible memory leak in ossl_x509_algor_md_t...

Bernd Edlinger noreply at github.com
Tue Dec 19 17:35:18 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: dbc819bd36c2dccde58ece3330a6f47434590c57
      https://github.com/openssl/openssl/commit/dbc819bd36c2dccde58ece3330a6f47434590c57
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-12-19 (Tue, 19 Dec 2023)

  Changed paths:
    M crypto/asn1/x_algor.c

  Log Message:
  -----------
  Fix a possible memory leak in ossl_x509_algor_md_to_mgf1

Add a missing check of the return code of X509_ALGOR_set0.
otherwise a memory leak may occur.

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22999)

(cherry picked from commit 493d6c9ab37b18b110c977a2bc896f06b18f6065)




More information about the openssl-commits mailing list