Mercurial > hg
comparison contrib/fuzz/Makefile @ 41014:c06f0ef9a5ba
fuzz: new fuzzer for revlog's parse_index2 method
Differential Revision: https://phab.mercurial-scm.org/D5462
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 19 Dec 2018 20:26:53 -0500 |
parents | ef103c96ed33 |
children | b444407f635b |
comparison
equal
deleted
inserted
replaced
41013:ef103c96ed33 | 41014:c06f0ef9a5ba |
---|---|
122 -o $$OUT/manifest_fuzzer | 122 -o $$OUT/manifest_fuzzer |
123 | 123 |
124 manifest_corpus.zip: | 124 manifest_corpus.zip: |
125 python manifest_corpus.py $$OUT/manifest_fuzzer_seed_corpus.zip | 125 python manifest_corpus.py $$OUT/manifest_fuzzer_seed_corpus.zip |
126 | 126 |
127 revlog_fuzzer: sanpy revlog.cc manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o | |
128 $(CXX) $(CXXFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \ | |
129 -Wno-register -Wno-macro-redefined \ | |
130 -I../../mercurial revlog.cc \ | |
131 manifest.o charencode.o parsers.o dirs.o pathencode.o revlog.o pyutil.o \ | |
132 -lFuzzingEngine `$$OUT/sanpy/bin/python-config --ldflags` \ | |
133 -o $$OUT/revlog_fuzzer | |
134 | |
135 revlog_corpus.zip: | |
136 python revlog_corpus.py $$OUT/revlog_fuzzer_seed_corpus.zip | |
137 | |
127 clean: | 138 clean: |
128 $(RM) *.o *_fuzzer \ | 139 $(RM) *.o *_fuzzer \ |
129 bdiff \ | 140 bdiff \ |
130 mpatch \ | 141 mpatch \ |
131 xdiff | 142 xdiff |
132 | 143 |
133 oss-fuzz: bdiff_fuzzer mpatch_fuzzer mpatch_corpus.zip xdiff_fuzzer manifest_fuzzer manifest_corpus.zip | 144 oss-fuzz: bdiff_fuzzer mpatch_fuzzer mpatch_corpus.zip xdiff_fuzzer manifest_fuzzer manifest_corpus.zip revlog_fuzzer revlog_corpus.zip |
134 | 145 |
135 .PHONY: all clean oss-fuzz sanpy | 146 .PHONY: all clean oss-fuzz sanpy |