diff 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
line wrap: on
line diff
--- a/fuzzer-kexdh.c	Mon Mar 05 14:14:26 2018 +0800
+++ b/fuzzer-kexdh.c	Mon Mar 05 16:29:57 2018 +0800
@@ -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) {