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

x509/x509_set.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: 786dd2c2 ("Add support for custom signature parameters")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@purdue.edu>

Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
Reviewed-by: default avatarTom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: default avatarNeil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23956)
parent 2b6f3077
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