summaryrefslogtreecommitdiffstats
path: root/test/asn1_encode_test.c
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@purdue.edu>2024-03-21 19:55:34 +0000
committerTomas Mraz <tomas@openssl.org>2024-03-25 17:46:34 +0100
commitc6b2290aa7edb85632619f0556bdadab7ab95de5 (patch)
treeeb7c405a9c54fc90274573975ad0568897f52531 /test/asn1_encode_test.c
parent05dad63cf7e1bfd263222599b1e7b47fdac6d51c (diff)
Replace unsigned with int
Replace the type of "digest_length" with int to avoid implicit conversion when it is assigned by EVP_MD_get_size(). Otherwise, it may pass the following check and cause the integer overflow error when EVP_MD_get_size() returns negative numbers. Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23922) (cherry picked from commit f13ddaab69def0b453b75a8f2deb80e1f1634f42)
Diffstat (limited to 'test/asn1_encode_test.c')
0 files changed, 0 insertions, 0 deletions