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

Sashan noreply at github.com
Tue Jun 18 17:45:52 UTC 2024


  Branch: refs/heads/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: fd6d2ee6c9f7f123532efaae446aea1039420c6a
      https://github.com/openssl/openssl/commit/fd6d2ee6c9f7f123532efaae446aea1039420c6a
  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