diff options
author | Tomas Mraz <tomas@openssl.org> | 2024-04-12 15:37:58 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-04-17 09:30:11 +0200 |
commit | 8d8a0144303374f69f73fc944dd55c68600d15e5 (patch) | |
tree | 5ab3a2331d2e335a23b7dfe170b192200b50ec26 /fuzz/decoder.c | |
parent | Define KU_ constants via corresponding X509v3_KU_ (diff) | |
download | openssl-8d8a0144303374f69f73fc944dd55c68600d15e5.tar.xz openssl-8d8a0144303374f69f73fc944dd55c68600d15e5.zip |
fuzz/decoder.c: Limit the EVP_PKEY_param_check on DHX keys as well
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24126)
Diffstat (limited to 'fuzz/decoder.c')
-rw-r--r-- | fuzz/decoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzz/decoder.c b/fuzz/decoder.c index c7b6d02f73..4888c5cd40 100644 --- a/fuzz/decoder.c +++ b/fuzz/decoder.c @@ -68,7 +68,8 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) * Param check will take too long time on large DH parameters. * Skip it. */ - if (!EVP_PKEY_is_a(pkey, "DH") || EVP_PKEY_get_bits(pkey) <= 8192) + if ((!EVP_PKEY_is_a(pkey, "DH") && !EVP_PKEY_is_a(pkey, "DHX")) + || EVP_PKEY_get_bits(pkey) <= 8192) EVP_PKEY_param_check(ctx); EVP_PKEY_public_check(ctx); |