]> git.ipfire.org Git - thirdparty/openssl.git/commit
ts/ts_rsp_sign.c: Add the check for the EVP_MD_CTX_get_size()
authorJiasheng Jiang <jiasheng@purdue.edu>
Sat, 23 Mar 2024 16:09:01 +0000 (16:09 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 9 Apr 2024 18:47:00 +0000 (20:47 +0200)
commitf5fde94c54a1ad49663391750fd1b2f47550a4b6
tree69fdcd5a6930eaefdd82a4e514f4047ad478df50
parentf4174b6db41650363e41af42e82de9cc7ef09a5e
ts/ts_rsp_sign.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: c7235be6e3 ("RFC 3161 compliant time stamp request creation, response generation and response verification.")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23960)
crypto/ts/ts_rsp_sign.c