comparison fuzzer-kexdh.c @ 1595:4fe7cc9e45eb

reduce number of dh parameters so fuzzer doesn't timeout
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Mar 2018 21:00:09 +0800
parents 46506b32650a
children b711a8256919
comparison
equal deleted inserted replaced
1594:c69df5d5db94 1595:4fe7cc9e45eb
8 8
9 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 9 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
10 static int once = 0; 10 static int once = 0;
11 static struct key_context* keep_newkeys = NULL; 11 static struct key_context* keep_newkeys = NULL;
12 /* number of generated parameters is limited by the timeout for the first run */ 12 /* number of generated parameters is limited by the timeout for the first run */
13 #define NUM_PARAMS 300 13 #define NUM_PARAMS 80
14 static struct kex_dh_param *dh_params[NUM_PARAMS]; 14 static struct kex_dh_param *dh_params[NUM_PARAMS];
15 15
16 if (!once) { 16 if (!once) {
17 fuzz_common_setup(); 17 fuzz_common_setup();
18 fuzz_svr_setup(); 18 fuzz_svr_setup();