From: Tomas Mraz Date: Tue, 2 Jul 2024 13:36:03 +0000 (+0200) Subject: fuzz/decoder.c: Lower the limits on key checks X-Git-Tag: openssl-3.3.2~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658e53b4efa1ca55e9ea2ad8f03971fcc85aad17;p=thirdparty%2Fopenssl.git fuzz/decoder.c: Lower the limits on key checks These checks still take too long time on clusterfuzz so they are longer than the timeout limit. Reviewed-by: Neil Horman Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/24781) (cherry picked from commit 29696af689df734cae05181d85ee04470c3839d3) --- diff --git a/fuzz/decoder.c b/fuzz/decoder.c index 7b53fe61a93..6d8ddbe6406 100644 --- a/fuzz/decoder.c +++ b/fuzz/decoder.c @@ -69,12 +69,12 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) * Skip it. */ if ((!EVP_PKEY_is_a(pkey, "DH") && !EVP_PKEY_is_a(pkey, "DHX")) - || EVP_PKEY_get_bits(pkey) <= 8192) + || EVP_PKEY_get_bits(pkey) <= 2048) EVP_PKEY_param_check(ctx); EVP_PKEY_public_check(ctx); /* Private and pairwise checks are unbounded, skip for large keys. */ - if (EVP_PKEY_get_bits(pkey) <= 16384) { + if (EVP_PKEY_get_bits(pkey) <= 4096) { EVP_PKEY_private_check(ctx); EVP_PKEY_pairwise_check(ctx); }