diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-26 23:31:24 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-26 23:31:24 +0800 |
commit | bf4058d1df8ba63fbdacd904aafe08c686f035f5 (patch) | |
tree | ac8f48f9698d765c08dd1bfa878374abdb0c068c /fuzz/fuzz-common.c | |
parent | 4d716b63027f62e9dd8544e459dcbc419267280a (diff) |
Preallocate memory for sshpacketmutator. Add fuzzer-client_mutator_nomaths
Diffstat (limited to 'fuzz/fuzz-common.c')
-rw-r--r-- | fuzz/fuzz-common.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fuzz/fuzz-common.c b/fuzz/fuzz-common.c index 82a2d5d..f741919 100644 --- a/fuzz/fuzz-common.c +++ b/fuzz/fuzz-common.c @@ -44,10 +44,14 @@ void fuzz_common_setup(void) { } 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); } } |