# HG changeset patch # User Matt Johnston # Date 1607140493 -28800 # Node ID 918e49decafa1d2fce98ea48cba34c721085ccbf # Parent a6da10ac64b5a9a447e6bc37ca33ae45cfbacd38 fuzz: skip custom mutators with -fsanitize=memory diff -r a6da10ac64b5 -r 918e49decafa Makefile.in --- a/Makefile.in Thu Dec 03 22:18:51 2020 +0800 +++ b/Makefile.in Sat Dec 05 11:54:53 2020 +0800 @@ -296,7 +296,12 @@ # 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]" > $@