mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-11-08 14:38:27 +01:00
Add AFL make target (runs for 10 minutes).
This commit is contained in:
parent
fa8e54cca2
commit
7ab550254a
7
Makefile
7
Makefile
@ -178,6 +178,13 @@ doc:
|
|||||||
rm -f pdfio.xml
|
rm -f pdfio.xml
|
||||||
|
|
||||||
|
|
||||||
|
# Fuzz-test the library <>
|
||||||
|
.PHONY: afl
|
||||||
|
afl:
|
||||||
|
$(MAKE) -$(MAKEFLAGS) CC="afl-clang" COMMONFLAGS="-g -fsanitize=address" clean all
|
||||||
|
afl-fuzz -x afl-pdf.dict -i afl-input -o afl-output -V 600 -e pdf -t 5000 ./testpdfio @@
|
||||||
|
|
||||||
|
|
||||||
# Analyze code with the Clang static analyzer <https://clang-analyzer.llvm.org>
|
# Analyze code with the Clang static analyzer <https://clang-analyzer.llvm.org>
|
||||||
clang:
|
clang:
|
||||||
clang $(CPPFLAGS) --analyze $(OBJS:.o=.c) 2>clang.log
|
clang $(CPPFLAGS) --analyze $(OBJS:.o=.c) 2>clang.log
|
||||||
|
Loading…
Reference in New Issue
Block a user