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

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


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




More information about the openssl-commits mailing list