comparison Makefile.in @ 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 97ad26e397a5
children df7bfd2f7d45
comparison
equal deleted inserted replaced
1782:a6da10ac64b5 1783:918e49decafa
294 $(CXX) $(CXXFLAGS) fuzz/[email protected] $(LDFLAGS) $(allobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@ 294 $(CXX) $(CXXFLAGS) fuzz/[email protected] $(LDFLAGS) $(allobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@
295 295
296 # fuzzers that use the custom mutator - these expect a SSH network stream 296 # fuzzers that use the custom mutator - these expect a SSH network stream
297 MUTATOR_FUZZERS=fuzzer-client fuzzer-client_nomaths \ 297 MUTATOR_FUZZERS=fuzzer-client fuzzer-client_nomaths \
298 fuzzer-preauth fuzzer-preauth_nomaths fuzzer-postauth_nomaths 298 fuzzer-preauth fuzzer-preauth_nomaths fuzzer-postauth_nomaths
299
300 # Skip custom mutators for -fsanitize-memory since libfuzzer doesn't initialise memory
301 # Pending fix for it https://github.com/google/oss-fuzz/issues/4605
302 ifeq (,$(findstring fsanitize=memory, $(CFLAGS)))
299 $(MUTATOR_FUZZERS): allobjs += fuzz/fuzz-sshpacketmutator.o 303 $(MUTATOR_FUZZERS): allobjs += fuzz/fuzz-sshpacketmutator.o
304 endif
300 305
301 fuzzer-%.options: Makefile 306 fuzzer-%.options: Makefile
302 echo "[libfuzzer]" > $@ 307 echo "[libfuzzer]" > $@
303 echo "max_len = 50000" >> $@ 308 echo "max_len = 50000" >> $@
304 309