[openssl/openssl] 3221ee: Fix memleak in PKCS12_pbe_crypt_ex()

Tomas Mraz noreply at reply.github.openssl.org
Mon Jul 18 08:19:53 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 3221eee7e0053cf6db54d0409f4f3b26df5fbbbd
      https://github.openssl.org/openssl/openssl/commit/3221eee7e0053cf6db54d0409f4f3b26df5fbbbd
  Author: Roberto Hueso Gomez <roberto at robertohueso.org>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M crypto/pkcs12/p12_decr.c

  Log Message:
  -----------
  Fix memleak in PKCS12_pbe_crypt_ex()

Makes sure that the variable 'out' is free on every error path.

Fixes #18689

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18808)

(cherry picked from commit af801ec89205aaf6ebf8522d510d0b1fc29e3233)




More information about the openssl-commits mailing list