changeset 1783:918e49decafa

fuzz: skip custom mutators with -fsanitize=memory
author Matt Johnston <matt@ucc.asn.au>
date Sat, 05 Dec 2020 11:54:53 +0800
parents a6da10ac64b5
children 94323a20e572
files Makefile.in
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]"               > $@