Skip to content

Commit

Permalink
fuzz/decoder.c: Lower the limits on key checks
Browse files Browse the repository at this point in the history
These checks still take too long time on clusterfuzz
so they are longer than the timeout limit.

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Kurt Roeckx <[email protected]>
(Merged from openssl#24781)
  • Loading branch information
t8m authored and nhorman committed Jul 5, 2024
1 parent 59c415a commit 29696af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 29696af

Please sign in to comment.