[openssl/openssl] 76385c: Fix a memleak in prepare_rsa_params

Bernd Edlinger noreply at github.com
Wed Sep 13 05:49:26 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 76385c3766289e3399e852706dca7dc19509f364
      https://github.com/openssl/openssl/commit/76385c3766289e3399e852706dca7dc19509f364
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M providers/implementations/encode_decode/encode_key2any.c

  Log Message:
  -----------
  Fix a memleak in prepare_rsa_params

This affects only RSA-PSS keys with params using
negative salt legth, or in case of out of memory.
This fixes a memory leak reported in #22049.

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22061)

(cherry picked from commit 46def829afa4d8bed8f53d484bdf842d65f0e176)




More information about the openssl-commits mailing list