From 463073282c0050b9f755eaab1acf513489877fc4 Mon Sep 17 00:00:00 2001 From: code-terror Date: Thu, 21 Jul 2022 03:51:04 -0400 Subject: [PATCH] Initial integration of Bincode (#8045) * add cloud-hypervisor * adding dockerfile and build.sh * fix issue * add copyright * fix year in copyright * optimise * add bincode * Update project.yaml Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> --- projects/bincode/Dockerfile | 19 +++++++++++++++++++ projects/bincode/build.sh | 19 +++++++++++++++++++ projects/bincode/project.yaml | 12 ++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 projects/bincode/Dockerfile create mode 100644 projects/bincode/build.sh create mode 100644 projects/bincode/project.yaml 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'