diff options
author | 2021-04-21 15:32:48 +0100 | |
---|---|---|
committer | 2021-04-21 07:32:48 -0700 | |
commit | 23f406128a586293537e5916d89c2c95cabdca5c (patch) | |
tree | 97e51b5dc269b7709eecf24a314bc148f563fbf2 /projects/hyperium | |
parent | ffe4f892b11b55a9548ea875189737e4a72aa159 (diff) |
hyperium: initial integration (#5330)
* initial integration of hyperium http.
* Updated the hyperium http project.
* Updated the Dockerfile for hyperium-http.
* Updated the hyperium fuzzer.
* Add another hyperium repo.
* Renamed hyperium folder.
* update build script.
* complete integration following upstream merges.
* complete project yaml.
* Updated the build script.
* switched contacts.
Diffstat (limited to 'projects/hyperium')
-rw-r--r-- | projects/hyperium/Dockerfile | 22 | ||||
-rwxr-xr-x | projects/hyperium/build.sh | 26 | ||||
-rw-r--r-- | projects/hyperium/project.yaml | 10 |
3 files changed, 58 insertions, 0 deletions
diff --git a/projects/hyperium/Dockerfile b/projects/hyperium/Dockerfile new file mode 100644 index 00000000..ffd6e88d --- /dev/null +++ b/projects/hyperium/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2021 Google LLC +# +# 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. +# +################################################################################ +FROM gcr.io/oss-fuzz-base/base-builder + +RUN git clone https://github.com/hyperium/http +RUN git clone https://github.com/hyperium/h2 +WORKDIR $SRC + +COPY build.sh $SRC/ diff --git a/projects/hyperium/build.sh b/projects/hyperium/build.sh new file mode 100755 index 00000000..31366357 --- /dev/null +++ b/projects/hyperium/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash -eu +# Copyright 2021 Google LLC +# +# 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. +# +################################################################################ + +cd $SRC/http +cargo fuzz build -O +cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_http $OUT/ + +cd $SRC/h2 +cargo fuzz build -O +cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_client $OUT/ +cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_e2e $OUT/ +cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_hpack $OUT/ diff --git a/projects/hyperium/project.yaml b/projects/hyperium/project.yaml new file mode 100644 index 00000000..a6fc0502 --- /dev/null +++ b/projects/hyperium/project.yaml @@ -0,0 +1,10 @@ +homepage: "https://github.com/hyperium/" +main_repo: "https://github.com/hyperium/" +primary_contact: "seanmonstar@gmail.com" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +language: rust +auto_ccs: + - "david@adalogics.com" |