Mercurial > dropbear
changeset 1592:46506b32650a
reduce number of params so it doesn't hit a timeout
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 05 Mar 2018 16:29:57 +0800 |
parents | b794d277c6da |
children | c8c20fb57a9a |
files | fuzzer-kexdh.c fuzzer-kexecdh.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fuzzer-kexdh.c Mon Mar 05 14:14:26 2018 +0800 +++ b/fuzzer-kexdh.c Mon Mar 05 16:29:57 2018 +0800 @@ -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) {
--- a/fuzzer-kexecdh.c Mon Mar 05 14:14:26 2018 +0800 +++ b/fuzzer-kexecdh.c Mon Mar 05 16:29:57 2018 +0800 @@ -10,7 +10,8 @@ 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) {