]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix coverity-993406
authorNeil Horman <nhorman@openssl.org>
Wed, 24 Jul 2024 20:10:53 +0000 (16:10 -0400)
committerNeil Horman <nhorman@openssl.org>
Fri, 26 Jul 2024 17:16:10 +0000 (13:16 -0400)
commit31cd9cd830f847c0effc7c15b814f890228c3739
tree0aaca69b6a6f619bf32d1ef3a464c9ed8b032804
parentbc43158797a7f8bc36cb736524bf812db7d8635e
Fix coverity-993406

Coverity flagged an overflow warning in the cmsapitest.

Its pretty insignificant, but if a huge file is passed in via BIO, its
possible for the length variable returned to overflow.

Just check it as we read to silence coverity on it.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/24995)
test/cmsapitest.c