Added AFL Fuzzer in Makefile.in

Starts AFL Fuzzing on build using "make afl"
This commit is contained in:
DarkRelay 2023-08-24 14:28:56 +05:30 committed by GitHub
parent 809204a305
commit bfb4518068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,6 +307,12 @@ testmxml-vg: $(LIBOBJS) testmxml.o
testmxml.o: mxml.h
# Fuzz-test the library <>
.PHONY: afl
afl:
$(MAKE) -$(MAKEFLAGS) CC="afl-clang-fast" COMMONFLAGS="-g" clean all
test afl-output || rm -rf afl-output
afl-fuzz -x xml.dict -i afl-input -o afl-output -V 600 -e xml -t 5000 ./testmxml @@ temps.xml
#
# Analyze code with the Clang static analyzer <https://clang-analyzer.llvm.org>