diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-12-05 11:54:53 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-12-05 11:54:53 +0800 |
commit | f9ff3fa23dec4b661e78a31accd56f5e8c3202d9 (patch) | |
tree | 2c0c52bbd863d93d3c353fbbd284b5192fdd8af1 /Makefile.in | |
parent | 2c64335d9cfab7674ff5c247208abb4661335c43 (diff) |
fuzz: skip custom mutators with -fsanitize=memory
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 5d73db4..5509ea9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -296,7 +296,12 @@ $(FUZZ_TARGETS): $(FUZZ_OBJS) $(allobjs) $(LIBTOM_DEPS) # fuzzers that use the custom mutator - these expect a SSH network stream MUTATOR_FUZZERS=fuzzer-client fuzzer-client_nomaths \ fuzzer-preauth fuzzer-preauth_nomaths fuzzer-postauth_nomaths + +# Skip custom mutators for -fsanitize-memory since libfuzzer doesn't initialise memory +# Pending fix for it https://github.com/google/oss-fuzz/issues/4605 +ifeq (,$(findstring fsanitize=memory, $(CFLAGS))) $(MUTATOR_FUZZERS): allobjs += fuzz/fuzz-sshpacketmutator.o +endif fuzzer-%.options: Makefile echo "[libfuzzer]" > $@ |