comparison 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
comparison
equal deleted inserted replaced
1766:b14e0a19bcbe 1767:3e1e1f82eba6
42 { 42 {
43 fprintf(stderr, "Dropbear fuzzer: -v specified, not disabling stderr output\n"); 43 fprintf(stderr, "Dropbear fuzzer: -v specified, not disabling stderr output\n");
44 } 44 }
45 else 45 else
46 #endif 46 #endif
47 if (getenv("DROPBEAR_KEEP_STDERR")) {
48 fprintf(stderr, "Dropbear fuzzer: DROPBEAR_KEEP_STDERR, not disabling stderr output\n");
49 }
50 else
47 { 51 {
48 // fprintf(stderr, "Dropbear fuzzer: Disabling stderr output\n"); 52 fprintf(stderr, "Dropbear fuzzer: Disabling stderr output\n");
49 // fuzz.stderr = fopen("/dev/null", "w"); 53 fuzz.stderr = fopen("/dev/null", "w");
50 // assert(fuzz.stderr); 54 assert(fuzz.stderr);
51 } 55 }
52 } 56 }
53 57
54 int fuzz_set_input(const uint8_t *Data, size_t Size) { 58 int fuzz_set_input(const uint8_t *Data, size_t Size) {
55 59