kopia lustrzana https://github.com/weetmuts/wmbusmeters
Added fuzzing of full telegrams.
rodzic
7876804a0b
commit
04d8662f87
9
Makefile
9
Makefile
|
@ -234,10 +234,15 @@ update_manufacturers:
|
|||
build_fuzz:
|
||||
@if [ "${AFLHOME}" = "" ]; then echo 'You must supply aflhome "make build_fuzz AFLHOME=/home/afl"'; exit 1; fi
|
||||
$(MAKE) AFL_HARDEN=1 CXX=$(AFLHOME)/afl-g++ $(BUILD)/fuzz
|
||||
$(MAKE) AFL_HARDEN=1 CXX=$(AFLHOME)/afl-g++ $(BUILD)/wmbusmeters
|
||||
|
||||
run_fuzz:
|
||||
run_fuzz_difvifparser:
|
||||
@if [ "${AFLHOME}" = "" ]; then echo 'You must supply aflhome "make run_fuzz AFLHOME=/home/afl"'; exit 1; fi
|
||||
${AFLHOME}/afl-fuzz -i fuzz_testcases/ -o fuzz_findings/ build/fuzz
|
||||
${AFLHOME}/afl-fuzz -i fuzz_testcases/difvifparser -o fuzz_findings/ build/fuzz
|
||||
|
||||
run_fuzz_telegrams:
|
||||
@if [ "${AFLHOME}" = "" ]; then echo 'You must supply aflhome "make run_fuzz AFLHOME=/home/afl"'; exit 1; fi
|
||||
${AFLHOME}/afl-fuzz -i fuzz_testcases/telegrams -o fuzz_findings/ build/wmbusmeters --listento=any stdin
|
||||
|
||||
# Include dependency information generated by gcc in a previous compile.
|
||||
include $(wildcard $(patsubst %.o,%.d,$(METER_OBJS)))
|
||||
|
|
Plik binarny nie jest wyświetlany.
Ładowanie…
Reference in New Issue