# HG changeset patch # User Matt Johnston # Date 1520434232 -28800 # Node ID b711a8256919494c0dc5b3ecf8f5271b92ff10cb # Parent dc7c9fdb371667f22bc922807a316a95e139cf88 reduce fuzzer-kexdh params count again, still hitting timeout diff -r dc7c9fdb3716 -r b711a8256919 fuzzer-kexdh.c --- a/fuzzer-kexdh.c Wed Mar 07 22:16:21 2018 +0800 +++ b/fuzzer-kexdh.c Wed Mar 07 22:50:32 2018 +0800 @@ -9,8 +9,10 @@ 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 80 + /* number of generated parameters is limited by the timeout for the first run. + TODO move this to the libfuzzer initialiser function instead if the timeout + doesn't apply there */ + #define NUM_PARAMS 20 static struct kex_dh_param *dh_params[NUM_PARAMS]; if (!once) {