diff options
author | DavidKorczynski <david@adalogics.com> | 2021-04-21 01:27:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 10:27:55 +1000 |
commit | 701054f8405f2354f629da8bd8d94bc9302cf5ff (patch) | |
tree | 18b8a5cf30f8b8a7f2eacd88ae153debc466413a /projects/prost | |
parent | d38fd0220af986edce26999a6595c97348df6a97 (diff) | |
download | oss-fuzz-701054f8405f2354f629da8bd8d94bc9302cf5ff.tar.gz |
prost: initial integration. (#5404)
Diffstat (limited to 'projects/prost')
-rw-r--r-- | projects/prost/Dockerfile | 20 | ||||
-rwxr-xr-x | projects/prost/build.sh | 21 | ||||
-rw-r--r-- | projects/prost/project.yaml | 10 |
3 files changed, 51 insertions, 0 deletions
diff --git a/projects/prost/Dockerfile b/projects/prost/Dockerfile new file mode 100644 index 000000000..6d13ecf01 --- /dev/null +++ b/projects/prost/Dockerfile @@ -0,0 +1,20 @@ +# Copyright 2021 Google LL +# 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 apt-get update && apt-get install -y pkg-config libssl-dev curl libcurl4-openssl-dev ninja-build +RUN git clone --depth 1 https://github.com/danburkert/prost +WORKDIR $SRC + +COPY build.sh $SRC/ diff --git a/projects/prost/build.sh b/projects/prost/build.sh new file mode 100755 index 000000000..4b9c38285 --- /dev/null +++ b/projects/prost/build.sh @@ -0,0 +1,21 @@ +#!/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/prost +cargo fuzz build -O +cp fuzz/target/x86_64-unknown-linux-gnu/release/proto2 $OUT/ +cp fuzz/target/x86_64-unknown-linux-gnu/release/proto3 $OUT/ diff --git a/projects/prost/project.yaml b/projects/prost/project.yaml new file mode 100644 index 000000000..49f69f2a7 --- /dev/null +++ b/projects/prost/project.yaml @@ -0,0 +1,10 @@ +homepage: "https://crates.io/crates/prost" +main_repo: "https://github.com/danburkert/prost" +primary_contact: "dan@danburkert.com" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +language: rust +auto_ccs: + - "david@adalogics.com" |