From c4054c4d8e3f0b01223cef9a05ce4b9553338f91 Mon Sep 17 00:00:00 2001 From: Jonathan Foote Date: Fri, 12 May 2017 18:48:55 -0400 Subject: [PATCH] add url handler fuzz target (#601) --- projects/h2o/build.sh | 3 ++- projects/h2o/h2o-fuzzer-url.options | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 projects/h2o/h2o-fuzzer-url.options diff --git a/projects/h2o/build.sh b/projects/h2o/build.sh index f6236720b..96c10de64 100755 --- a/projects/h2o/build.sh +++ b/projects/h2o/build.sh @@ -18,10 +18,11 @@ pushd $SRC/h2o cmake -DBUILD_FUZZER=ON -DOSS_FUZZ=ON -DOPENSSL_USE_STATIC_LIBS=TRUE . make -cp ./h2o-fuzzer-http* $OUT/ +cp ./h2o-fuzzer-* $OUT/ zip -jr $OUT/h2o-fuzzer-http1_seed_corpus.zip $SRC/h2o/fuzz/http1-corpus zip -jr $OUT/h2o-fuzzer-http2_seed_corpus.zip $SRC/h2o/fuzz/http2-corpus +zip -jr $OUT/h2o-fuzzer-url_seed_corpus.zip $SRC/h2o/fuzz/url-corpus cp $SRC/*.options $SRC/h2o/fuzz/*.dict $OUT/ popd diff --git a/projects/h2o/h2o-fuzzer-url.options b/projects/h2o/h2o-fuzzer-url.options new file mode 100644 index 000000000..329a6e27b --- /dev/null +++ b/projects/h2o/h2o-fuzzer-url.options @@ -0,0 +1,2 @@ +[libfuzzer] +close_fd_mask = 3