Mercurial > dropbear
diff 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 |
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]" > $@