reduce number of params so it doesn't hit a timeout

This commit is contained in:
Matt Johnston 2018-03-05 16:29:57 +08:00
parent 6b05aa4275
commit 084ff9b4c8
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,8 @@
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
static int once = 0;
static struct key_context* keep_newkeys = NULL;
#define NUM_PARAMS 800
/* number of generated parameters is limited by the timeout for the first run */
#define NUM_PARAMS 300
static struct kex_dh_param *dh_params[NUM_PARAMS];
if (!once) {

View File

@ -10,7 +10,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
static int once = 0;
static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */
static struct key_context* keep_newkeys = NULL;
#define NUM_PARAMS 800
/* number of generated parameters is limited by the timeout for the first run */
#define NUM_PARAMS 300
static struct kex_ecdh_param *ecdh_params[NUM_PARAMS];
if (!once) {