changeset 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 dc7c9fdb3716
children 0f149d63068d
files fuzzer-kexdh.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fuzzer-kexdh.c	Wed Mar 07 22:16:21 2018 +0800
+++ b/fuzzer-kexdh.c	Wed Mar 07 22:50:32 2018 +0800
@@ -9,8 +9,10 @@
 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
 	static int once = 0;
 	static struct key_context* keep_newkeys = NULL;
-	/* number of generated parameters is limited by the timeout for the first run */
-	#define NUM_PARAMS 80
+	/* number of generated parameters is limited by the timeout for the first run.
+	   TODO move this to the libfuzzer initialiser function instead if the timeout
+	   doesn't apply there */
+	#define NUM_PARAMS 20
 	static struct kex_dh_param *dh_params[NUM_PARAMS];
 
 	if (!once) {