evp_test.c: There are now 3 parameters possible for digests
authorTomas Mraz <tomas@openssl.org>
Thu, 26 Oct 2023 07:59:22 +0000 (09:59 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 30 Oct 2023 09:54:05 +0000 (10:54 +0100)
commit497a7810bcee48781aa12d4db870f6a565bd0592
treec2622318495745b2f5f4332a533aba0a1540c63e
parent758e9b537ac59680b4eaed77a81f5399cb38c0ae
evp_test.c: There are now 3 parameters possible for digests

In digest_test_run() there are now 3 parameters possible plus
the sentinel value. In reality we will never use all three
at once but Coverity rightfully complains that it is possible
to overflow the params array.

Fixes Coverity 1548054

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22521)
test/evp_test.c