diff options
author | Jonathan Foote <jmfoote@loyola.edu> | 2017-02-05 14:26:21 -0500 |
---|---|---|
committer | Abhishek Arya <inferno@chromium.org> | 2017-02-05 11:26:21 -0800 |
commit | 0793ccd9c44201c1b1e899c6bfa0f349ad0ad529 (patch) | |
tree | b7c605f27bba889ed0a7d891265cf1b2f7c37a0a /projects/h2o/build.sh | |
parent | 83aea115463d093bdefd3b58ee359113387df18e (diff) |
Set up h2o project (#347)
* passing smoke test
* integration complete pending PR to fix various issues on h2o side
* add libfuzzer options files
* remove redundant line of code
* simplify by specifying OPENSSL flag outside CMakeLists.txt; pass oss-fuzz CXXFLAGS in
* remove h2o upstream workaround patching; add dictionary support
* add license headers
Diffstat (limited to 'projects/h2o/build.sh')
-rwxr-xr-x | projects/h2o/build.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/projects/h2o/build.sh b/projects/h2o/build.sh new file mode 100755 index 00000000..f6236720 --- /dev/null +++ b/projects/h2o/build.sh @@ -0,0 +1,27 @@ +#!/bin/bash -eu +# Copyright 2016 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +pushd $SRC/h2o +cmake -DBUILD_FUZZER=ON -DOSS_FUZZ=ON -DOPENSSL_USE_STATIC_LIBS=TRUE . +make +cp ./h2o-fuzzer-http* $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 + +cp $SRC/*.options $SRC/h2o/fuzz/*.dict $OUT/ +popd |