From: Alan T. DeKok Date: Tue, 5 Oct 2021 19:29:44 +0000 (-0400) Subject: add a target to quickly debug fuzzer crashes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ccf2db6390059263fd396b7d0d8c66d9ce6f35;p=thirdparty%2Ffreeradius-server.git add a target to quickly debug fuzzer crashes --- diff --git a/src/bin/fuzzer.mk b/src/bin/fuzzer.mk index c7a42527c7b..f9bb0bb528a 100644 --- a/src/bin/fuzzer.mk +++ b/src/bin/fuzzer.mk @@ -72,3 +72,11 @@ test.fuzzer.$(PROTOCOL): $(TEST_BIN_DIR)/fuzzer_$(PROTOCOL) | src/tests/fuzzer-c -max_total_time=$(FUZZER_TIMEOUT) \ -D share/dictionary \ src/tests/fuzzer-corpus/$(PROTOCOL) + +test.fuzzer.$(PROTOCOL).crash: $(wildcard $(BUILD_DIR)/fuzzer/$(PROTOCOL)/crash-*) $(TEST_BIN_DIR)/fuzzer_$(PROTOCOL) | src/tests/fuzzer-corpus/$(PROTOCOL) + $(TEST_BIN)/fuzzer_$(PROTOCOL) \ + -artifact_prefix="$(FUZZER_ARTIFACTS)/$(PROTOCOL)/" \ + -max_len=512 $(FUZZER_ARGUMENTS) \ + -max_total_time=$(FUZZER_TIMEOUT) \ + -D share/dictionary \ + $<