add url handler fuzz target (#601)

This commit is contained in:
Jonathan Foote 2017-05-12 18:48:55 -04:00 committed by Oliver Chang
parent 15bbcc13f2
commit c4054c4d8e
2 changed files with 4 additions and 1 deletions

View File

@ -18,10 +18,11 @@
pushd $SRC/h2o pushd $SRC/h2o
cmake -DBUILD_FUZZER=ON -DOSS_FUZZ=ON -DOPENSSL_USE_STATIC_LIBS=TRUE . cmake -DBUILD_FUZZER=ON -DOSS_FUZZ=ON -DOPENSSL_USE_STATIC_LIBS=TRUE .
make 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-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-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/ cp $SRC/*.options $SRC/h2o/fuzz/*.dict $OUT/
popd popd

View File

@ -0,0 +1,2 @@
[libfuzzer]
close_fd_mask = 3