comparison fuzzer-kexecdh.c @ 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 35af85194268
children 4fe7cc9e45eb
comparison
equal deleted inserted replaced
1591:b794d277c6da 1592:46506b32650a
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 const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */ 11 static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */
12 static struct key_context* keep_newkeys = NULL; 12 static struct key_context* keep_newkeys = NULL;
13 #define NUM_PARAMS 800 13 /* number of generated parameters is limited by the timeout for the first run */
14 #define NUM_PARAMS 300
14 static struct kex_ecdh_param *ecdh_params[NUM_PARAMS]; 15 static struct kex_ecdh_param *ecdh_params[NUM_PARAMS];
15 16
16 if (!once) { 17 if (!once) {
17 fuzz_common_setup(); 18 fuzz_common_setup();
18 fuzz_svr_setup(); 19 fuzz_svr_setup();