Mercurial > dropbear
comparison fuzzer-kexdh.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 |
---|---|
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 #define NUM_PARAMS 800 | 12 /* number of generated parameters is limited by the timeout for the first run */ |
13 #define NUM_PARAMS 300 | |
13 static struct kex_dh_param *dh_params[NUM_PARAMS]; | 14 static struct kex_dh_param *dh_params[NUM_PARAMS]; |
14 | 15 |
15 if (!once) { | 16 if (!once) { |
16 fuzz_common_setup(); | 17 fuzz_common_setup(); |
17 fuzz_svr_setup(); | 18 fuzz_svr_setup(); |