diff fuzz/fuzz-common.c @ 1767:3e1e1f82eba6

Preallocate memory for sshpacketmutator. Add fuzzer-client_mutator_nomaths
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Oct 2020 23:31:24 +0800
parents b688c884dad7
children 096a66e45212
line wrap: on
line diff
--- a/fuzz/fuzz-common.c	Mon Oct 26 23:06:41 2020 +0800
+++ b/fuzz/fuzz-common.c	Mon Oct 26 23:31:24 2020 +0800
@@ -44,10 +44,14 @@
     }
     else
 #endif
+    if (getenv("DROPBEAR_KEEP_STDERR")) {
+        fprintf(stderr, "Dropbear fuzzer: DROPBEAR_KEEP_STDERR, not disabling stderr output\n");
+    } 
+    else 
     {
-        // fprintf(stderr, "Dropbear fuzzer: Disabling stderr output\n");
-        // fuzz.stderr = fopen("/dev/null", "w");
-        // assert(fuzz.stderr);
+        fprintf(stderr, "Dropbear fuzzer: Disabling stderr output\n");
+        fuzz.stderr = fopen("/dev/null", "w");
+        assert(fuzz.stderr);
     }
 }