Mercurial > dropbear
comparison fuzzer-kexdh.c @ 1601:b711a8256919
reduce fuzzer-kexdh params count again, still hitting timeout
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 07 Mar 2018 22:50:32 +0800 |
parents | 4fe7cc9e45eb |
children | 98d2b125eb89 |
comparison
equal
deleted
inserted
replaced
1600:dc7c9fdb3716 | 1601:b711a8256919 |
---|---|
7 #include "bignum.h" | 7 #include "bignum.h" |
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 80 | 13 TODO move this to the libfuzzer initialiser function instead if the timeout |
14 doesn't apply there */ | |
15 #define NUM_PARAMS 20 | |
14 static struct kex_dh_param *dh_params[NUM_PARAMS]; | 16 static struct kex_dh_param *dh_params[NUM_PARAMS]; |
15 | 17 |
16 if (!once) { | 18 if (!once) { |
17 fuzz_common_setup(); | 19 fuzz_common_setup(); |
18 fuzz_svr_setup(); | 20 fuzz_svr_setup(); |