diff --git a/fuzzer-kexdh.c b/fuzzer-kexdh.c index 60255dd..998a3eb 100644 --- a/fuzzer-kexdh.c +++ b/fuzzer-kexdh.c @@ -9,7 +9,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { static int once = 0; static struct key_context* keep_newkeys = NULL; - #define NUM_PARAMS 800 + /* number of generated parameters is limited by the timeout for the first run */ + #define NUM_PARAMS 300 static struct kex_dh_param *dh_params[NUM_PARAMS]; if (!once) { diff --git a/fuzzer-kexecdh.c b/fuzzer-kexecdh.c index db08c2b..e3a648f 100644 --- a/fuzzer-kexecdh.c +++ b/fuzzer-kexecdh.c @@ -10,7 +10,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { static int once = 0; static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */ static struct key_context* keep_newkeys = NULL; - #define NUM_PARAMS 800 + /* number of generated parameters is limited by the timeout for the first run */ + #define NUM_PARAMS 300 static struct kex_ecdh_param *ecdh_params[NUM_PARAMS]; if (!once) {