|
@@ -13,8 +13,10 @@ ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz
|
|
|
BROTLI_DIR = /usr/local/opt/brotli
|
|
BROTLI_DIR = /usr/local/opt/brotli
|
|
|
# BROTLI_SUPPORT = -DCPPHTTPLIB_BROTLI_SUPPORT -I$(BROTLI_DIR)/include -L$(BROTLI_DIR)/lib -lbrotlicommon -lbrotlienc -lbrotlidec
|
|
# BROTLI_SUPPORT = -DCPPHTTPLIB_BROTLI_SUPPORT -I$(BROTLI_DIR)/include -L$(BROTLI_DIR)/lib -lbrotlicommon -lbrotlienc -lbrotlidec
|
|
|
|
|
|
|
|
|
|
+FUZZERS = server_fuzzer url_parser_fuzzer header_parser_fuzzer
|
|
|
|
|
+
|
|
|
# Runs all the tests and also fuzz tests against seed corpus.
|
|
# Runs all the tests and also fuzz tests against seed corpus.
|
|
|
-all : server_fuzzer
|
|
|
|
|
|
|
+all : $(FUZZERS)
|
|
|
./server_fuzzer corpus/*
|
|
./server_fuzzer corpus/*
|
|
|
|
|
|
|
|
# Fuzz target, so that you can choose which $(LIB_FUZZING_ENGINE) to use.
|
|
# Fuzz target, so that you can choose which $(LIB_FUZZING_ENGINE) to use.
|
|
@@ -23,5 +25,11 @@ server_fuzzer : server_fuzzer.cc ../../httplib.h
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $< $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread -lanl
|
|
$(CXX) $(CXXFLAGS) -o $@ $< $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread -lanl
|
|
|
zip -q -r server_fuzzer_seed_corpus.zip corpus
|
|
zip -q -r server_fuzzer_seed_corpus.zip corpus
|
|
|
|
|
|
|
|
|
|
+header_parser_fuzzer : header_parser_fuzzer.cc ../../httplib.h
|
|
|
|
|
+ $(CXX) $(CXXFLAGS) -o $@ $< $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread -lanl
|
|
|
|
|
+
|
|
|
|
|
+url_parser_fuzzer : url_parser_fuzzer.cc ../../httplib.h
|
|
|
|
|
+ $(CXX) $(CXXFLAGS) -o $@ $< $(ZLIB_SUPPORT) $(LIB_FUZZING_ENGINE) -pthread -lanl
|
|
|
|
|
+
|
|
|
clean:
|
|
clean:
|
|
|
rm -f server_fuzzer pem *.0 *.o *.1 *.srl *.zip
|
|
rm -f server_fuzzer pem *.0 *.o *.1 *.srl *.zip
|