# HG changeset patch # User Matt Johnston # Date 1520238597 -28800 # Node ID 46506b32650a3c64d4e7130c1a43d4888a6cf66a # Parent b794d277c6dabd3428d297f9b59aef35a4c07089 reduce number of params so it doesn't hit a timeout diff -r b794d277c6da -r 46506b32650a fuzzer-kexdh.c --- 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) { diff -r b794d277c6da -r 46506b32650a fuzzer-kexecdh.c --- 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) {