]> git.ipfire.org Git - thirdparty/openssl.git/commit
x509/x509_set.c: Add the check for the EVP_MD_CTX_get_size()
authorJiasheng Jiang <jiasheng@purdue.edu>
Fri, 22 Mar 2024 23:47:21 +0000 (23:47 +0000)
committerNeil Horman <nhorman@openssl.org>
Sat, 30 Mar 2024 13:23:56 +0000 (09:23 -0400)
commit56e63f570bd5a479439bc6f6a2499f6b86ded341
tree1fe5eac2ddd0bfb025cef61a5edc236e7e7e4ac8
parent2b6f307721db97d9bd7ca5ad4abf12b90ef581cd
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: 786dd2c22c ("Add support for custom signature parameters")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23956)
crypto/x509/x509_set.c