openssl/crypto/sm2
slontis 4befe81a99 Fix mem leak in ECDSA_sign().
Similiar to the issue found in PR #20553 for DSA_sign().
ECDSA_sign() leaked memory if the signature was NULL
when i2d_ECDSA_SIG was called.

Note that this does not affect the higher level EVP
functions as they correctly handle NULL.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/20554)
2023-03-31 14:57:47 -04:00
..
build.info Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
sm2_crypt.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
sm2_err.c err: rename err_load_xxx_strings_int functions 2021-05-26 13:01:47 +10:00
sm2_key.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
sm2_sign.c Fix mem leak in ECDSA_sign(). 2023-03-31 14:57:47 -04:00