Mercurial > dropbear
comparison Makefile.in @ 1767:3e1e1f82eba6
Preallocate memory for sshpacketmutator. Add fuzzer-client_mutator_nomaths
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 26 Oct 2020 23:31:24 +0800 |
parents | b688c884dad7 |
children | af9ed0815818 |
comparison
equal
deleted
inserted
replaced
1766:b14e0a19bcbe | 1767:3e1e1f82eba6 |
---|---|
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 | 273 fuzzer-client_mutator fuzzer-client_mutator_nomaths |
274 | 274 |
275 FUZZER_OPTIONS = $(addsuffix .options, $(FUZZ_TARGETS)) | 275 FUZZER_OPTIONS = $(addsuffix .options, $(FUZZ_TARGETS)) |
276 FUZZ_OBJS = $(addprefix fuzz/,$(addsuffix .o,$(FUZZ_TARGETS))) \ | 276 FUZZ_OBJS = $(addprefix fuzz/,$(addsuffix .o,$(FUZZ_TARGETS))) \ |
277 fuzz/fuzz-sshpacketmutator.o | 277 fuzz/fuzz-sshpacketmutator.o |
278 | 278 |
291 fuzz-targets: $(FUZZ_TARGETS) $(FUZZER_OPTIONS) | 291 fuzz-targets: $(FUZZ_TARGETS) $(FUZZER_OPTIONS) |
292 | 292 |
293 $(FUZZ_TARGETS): $(FUZZ_OBJS) $(allobjs) $(LIBTOM_DEPS) | 293 $(FUZZ_TARGETS): $(FUZZ_OBJS) $(allobjs) $(LIBTOM_DEPS) |
294 $(CXX) $(CXXFLAGS) fuzz/[email protected] $(LDFLAGS) $(allobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) -lcrypt | 294 $(CXX) $(CXXFLAGS) fuzz/[email protected] $(LDFLAGS) $(allobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) -lcrypt |
295 | 295 |
296 fuzzer-client_mutator: allobjs += fuzz/fuzz-sshpacketmutator.o | 296 # fuzzers that use the custom mutator |
297 fuzzer-client_mutator fuzzer-client_mutator_nomaths: allobjs += fuzz/fuzz-sshpacketmutator.o | |
297 | 298 |
298 fuzzer-%.options: Makefile | 299 fuzzer-%.options: Makefile |
299 echo "[libfuzzer]" > $@ | 300 echo "[libfuzzer]" > $@ |
300 echo "max_len = 50000" >> $@ | 301 echo "max_len = 50000" >> $@ |
301 | 302 |