[openssl/openssl] 32c096: fix potential memory leak in PKCS12_add_key_ex()

Sashan noreply at github.com
Tue Jun 18 17:43:53 UTC 2024


  Branch: refs/heads/openssl-3.3
  Home:   https://github.com/openssl/openssl
  Commit: 32c09691586b34091fcb7fa5679bc1b662d95112
      https://github.com/openssl/openssl/commit/32c09691586b34091fcb7fa5679bc1b662d95112
  Author: sashan <anedvedicky at gmail.com>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M crypto/pkcs12/p12_crt.c

  Log Message:
  -----------
  fix potential memory leak in PKCS12_add_key_ex()

function must make sure memorry allocated for `p8`
gets freed in error path. Issue reported by LuMingYinDetect

Fixes #24453

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/24456)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list