Mercurial > dropbear
comparison Makefile.in @ 1771:af9ed0815818
Use SSH packet mutator for preauth too
Get rid of separate client mutator.
Have 0.1% chance of llvm random mutation
Add comments
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 29 Oct 2020 22:41:37 +0800 |
parents | 3e1e1f82eba6 |
children | 8179eabe16c9 |
comparison
equal
deleted
inserted
replaced
1770:66b29b054896 | 1771:af9ed0815818 |
---|---|
267 | 267 |
268 ## Fuzzing targets | 268 ## Fuzzing targets |
269 | 269 |
270 # list of fuzz targets | 270 # list of fuzz targets |
271 FUZZ_TARGETS=fuzzer-preauth fuzzer-pubkey fuzzer-verify fuzzer-preauth_nomaths \ | 271 FUZZ_TARGETS=fuzzer-preauth fuzzer-pubkey fuzzer-verify fuzzer-preauth_nomaths \ |
272 fuzzer-kexdh fuzzer-kexecdh fuzzer-kexcurve25519 fuzzer-client fuzzer-client_nomaths \ | 272 fuzzer-kexdh fuzzer-kexecdh fuzzer-kexcurve25519 fuzzer-client fuzzer-client_nomaths |
273 fuzzer-client_mutator fuzzer-client_mutator_nomaths | |
274 | 273 |
275 FUZZER_OPTIONS = $(addsuffix .options, $(FUZZ_TARGETS)) | 274 FUZZER_OPTIONS = $(addsuffix .options, $(FUZZ_TARGETS)) |
276 FUZZ_OBJS = $(addprefix fuzz/,$(addsuffix .o,$(FUZZ_TARGETS))) \ | 275 FUZZ_OBJS = $(addprefix fuzz/,$(addsuffix .o,$(FUZZ_TARGETS))) \ |
277 fuzz/fuzz-sshpacketmutator.o | 276 fuzz/fuzz-sshpacketmutator.o |
278 | 277 |
291 fuzz-targets: $(FUZZ_TARGETS) $(FUZZER_OPTIONS) | 290 fuzz-targets: $(FUZZ_TARGETS) $(FUZZER_OPTIONS) |
292 | 291 |
293 $(FUZZ_TARGETS): $(FUZZ_OBJS) $(allobjs) $(LIBTOM_DEPS) | 292 $(FUZZ_TARGETS): $(FUZZ_OBJS) $(allobjs) $(LIBTOM_DEPS) |
294 $(CXX) $(CXXFLAGS) fuzz/[email protected] $(LDFLAGS) $(allobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) -lcrypt | 293 $(CXX) $(CXXFLAGS) fuzz/[email protected] $(LDFLAGS) $(allobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) -lcrypt |
295 | 294 |
296 # fuzzers that use the custom mutator | 295 # fuzzers that use the custom mutator - these expect a SSH network stream |
297 fuzzer-client_mutator fuzzer-client_mutator_nomaths: allobjs += fuzz/fuzz-sshpacketmutator.o | 296 MUTATOR_FUZZERS=fuzzer-client fuzzer-client_nomaths \ |
297 fuzzer-preauth fuzzer-preauth_nomaths | |
298 $(MUTATOR_FUZZERS): allobjs += fuzz/fuzz-sshpacketmutator.o | |
298 | 299 |
299 fuzzer-%.options: Makefile | 300 fuzzer-%.options: Makefile |
300 echo "[libfuzzer]" > $@ | 301 echo "[libfuzzer]" > $@ |
301 echo "max_len = 50000" >> $@ | 302 echo "max_len = 50000" >> $@ |
302 | 303 |