diff options
author | DavidKorczynski <david@adalogics.com> | 2021-04-01 02:52:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 18:52:34 -0700 |
commit | f4ce2228c7297c30e84cf965b049fe64d13d089b (patch) | |
tree | 04a24ed35686af42ae4e8ed0760b0f625dc36299 /projects/httparse | |
parent | 5ed972de757799839c638d469aa96b9c9d2353fc (diff) | |
download | oss-fuzz-f4ce2228c7297c30e84cf965b049fe64d13d089b.tar.gz |
httparse: Initial integration (#5331)
Diffstat (limited to 'projects/httparse')
-rw-r--r-- | projects/httparse/Dockerfile | 21 | ||||
-rwxr-xr-x | projects/httparse/build.sh | 22 | ||||
-rw-r--r-- | projects/httparse/project.yaml | 10 |
3 files changed, 53 insertions, 0 deletions
diff --git a/projects/httparse/Dockerfile b/projects/httparse/Dockerfile new file mode 100644 index 000000000..cffcc9f12 --- /dev/null +++ b/projects/httparse/Dockerfile @@ -0,0 +1,21 @@ +# 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/seanmonstar/httparse +WORKDIR $SRC + +COPY build.sh $SRC/ diff --git a/projects/httparse/build.sh b/projects/httparse/build.sh new file mode 100755 index 000000000..c4fdec2ed --- /dev/null +++ b/projects/httparse/build.sh @@ -0,0 +1,22 @@ +#!/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/httparse +cargo fuzz build -O +cp fuzz/target/x86_64-unknown-linux-gnu/release/parse_request $OUT/ +cp fuzz/target/x86_64-unknown-linux-gnu/release/parse_headers $OUT/ +cp fuzz/target/x86_64-unknown-linux-gnu/release/parse_chunk_size $OUT/ diff --git a/projects/httparse/project.yaml b/projects/httparse/project.yaml new file mode 100644 index 000000000..43bfec406 --- /dev/null +++ b/projects/httparse/project.yaml @@ -0,0 +1,10 @@ +homepage: "https://github.com/seanmonstar/httparse" +main_repo: "https://github.com/seanmonstar/httparse" +primary_contact: "seanmonstar@gmail.com" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +language: rust +auto_ccs: + - "david@adalogics.com" |