diff --git a/projects/miniz_oxide/Dockerfile b/projects/miniz_oxide/Dockerfile new file mode 100644 index 000000000..e3b1ab778 --- /dev/null +++ b/projects/miniz_oxide/Dockerfile @@ -0,0 +1,21 @@ +# 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 +RUN apt-get update && apt-get install -y make autoconf automake libtool +RUN git clone --depth 1 https://github.com/Frommi/miniz_oxide miniz_oxide +WORKDIR miniz_oxide +COPY build.sh $SRC/ diff --git a/projects/miniz_oxide/build.sh b/projects/miniz_oxide/build.sh new file mode 100755 index 000000000..13d4ccd15 --- /dev/null +++ b/projects/miniz_oxide/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash -eu +# 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. +# +################################################################################ + +./build_orig_miniz.sh +RUSTFLAGS='-L./bin/' cargo fuzz build -O +fuzz_release=fuzz/target/x86_64-unknown-linux-gnu/release +cp $fuzz_release/inflate_nonwrapping $OUT/ diff --git a/projects/miniz_oxide/project.yaml b/projects/miniz_oxide/project.yaml new file mode 100644 index 000000000..01c2d0723 --- /dev/null +++ b/projects/miniz_oxide/project.yaml @@ -0,0 +1,9 @@ +homepage: "https://github.com/Frommi/miniz_oxide" +language: rust +main_repo: "https://github.com/Frommi/miniz_oxide" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +vendor_ccs: + - maxnair.dev@gmail.com