diff --git a/projects/bincode/Dockerfile b/projects/bincode/Dockerfile new file mode 100644 index 000000000..c8c19a5d0 --- /dev/null +++ b/projects/bincode/Dockerfile @@ -0,0 +1,19 @@ +# Copyright 2022 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-rust as builder +RUN apt-get update +RUN git clone --depth 1 https://github.com/bincode-org/bincode.git +COPY build.sh $SRC/ diff --git a/projects/bincode/build.sh b/projects/bincode/build.sh new file mode 100644 index 000000000..cde12e72b --- /dev/null +++ b/projects/bincode/build.sh @@ -0,0 +1,19 @@ +# Copyright 2022 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/bincode +cargo fuzz build -O +cp $SRC/bincode/fuzz/target/x86_64-unknown-linux-gnu/release/compat $OUT/ +cp $SRC/bincode/fuzz/target/x86_64-unknown-linux-gnu/release/roundtrip $OUT/ \ No newline at end of file diff --git a/projects/bincode/project.yaml b/projects/bincode/project.yaml new file mode 100644 index 000000000..30847bddc --- /dev/null +++ b/projects/bincode/project.yaml @@ -0,0 +1,12 @@ +homepage: "https://github.com/bincode-org/bincode" +language: rust +primary_contact: "nathan@mccarty.io" +auto_ccs: + - "zoey@dos.cafe" + - "github@trangar.com" + - "ty@pre-alpha.com" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +main_repo: 'https://github.com/bincode-org/bincode'