Skip to content
Commit 64963c8b authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Neil Horman
Browse files

signature/sm2_sig.c: Add the check for the EVP_MD_CTX_get_size()



Add the check for the return value of EVP_MD_CTX_get_size() to avoid invalid negative numbers.

Fixes: d0b79f86 ("Add SM2 signature algorithm to default provider")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@purdue.edu>

Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
Reviewed-by: default avatarTodd Short <todd.short@me.com>
Reviewed-by: default avatarNeil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23959)
parent 4169d58c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment