diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-03-06 21:00:09 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-03-06 21:00:09 +0800 |
commit | 0d9fe1433334e593f7517b77acbf6359d137e2c2 (patch) | |
tree | d3eab56f7b30c4ad1d9e794285d87aeaf0b527da | |
parent | 05e9195cadb52e3792368ef0f08fd84daba286d7 (diff) | |
download | dropbear-0d9fe1433334e593f7517b77acbf6359d137e2c2.tar.gz |
reduce number of dh parameters so fuzzer doesn't timeout
-rw-r--r-- | fuzzer-kexdh.c | 2 | ||||
-rw-r--r-- | fuzzer-kexecdh.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fuzzer-kexdh.c b/fuzzer-kexdh.c index 998a3eb..6a2b329 100644 --- a/fuzzer-kexdh.c +++ b/fuzzer-kexdh.c @@ -10,7 +10,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { static int once = 0; static struct key_context* keep_newkeys = NULL; /* number of generated parameters is limited by the timeout for the first run */ - #define NUM_PARAMS 300 + #define NUM_PARAMS 80 static struct kex_dh_param *dh_params[NUM_PARAMS]; if (!once) { diff --git a/fuzzer-kexecdh.c b/fuzzer-kexecdh.c index e3a648f..e97682c 100644 --- a/fuzzer-kexecdh.c +++ b/fuzzer-kexecdh.c @@ -11,7 +11,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */ static struct key_context* keep_newkeys = NULL; /* number of generated parameters is limited by the timeout for the first run */ - #define NUM_PARAMS 300 + #define NUM_PARAMS 80 static struct kex_ecdh_param *ecdh_params[NUM_PARAMS]; if (!once) { |