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>
This commit is contained in:
code-terror 2022-07-21 03:51:04 -04:00 committed by GitHub
parent 0296d0f379
commit 463073282c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View File

@ -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/

19
projects/bincode/build.sh Normal file
View File

@ -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/

View File

@ -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'