[openssl/openssl] 1ef520: Fix possible memleak in PKCS7_add0_attrib_signing_...

Bernd Edlinger noreply at github.com
Wed Nov 22 08:57:11 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 1ef520045556c4b5ada3a6c63d32a41b5d084165
      https://github.com/openssl/openssl/commit/1ef520045556c4b5ada3a6c63d32a41b5d084165
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-11-22 (Wed, 22 Nov 2023)

  Changed paths:
    M crypto/pkcs7/pk7_attr.c

  Log Message:
  -----------
  Fix possible memleak in PKCS7_add0_attrib_signing_time

When PKCS7_add_signed_attribute fails, the ASN1_TIME
object may be leaked when it was not passed in as
input parameter.

Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22772)

(cherry picked from commit 7d52539f00144cb410c4e9d8da0b9574c0badb19)
(cherry picked from commit e83a231d3e1da1a55260503a06365b1950985933)




More information about the openssl-commits mailing list