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

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


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