diff --git a/projects/image-rs/Dockerfile b/projects/image-rs/Dockerfile new file mode 100644 index 000000000..254e7e554 --- /dev/null +++ b/projects/image-rs/Dockerfile @@ -0,0 +1,21 @@ +# 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. +# +################################################################################ +FROM gcr.io/oss-fuzz-base/base-builder + +RUN git clone https://github.com/image-rs/image +WORKDIR $SRC/image + +COPY build.sh $SRC/ diff --git a/projects/image-rs/build.sh b/projects/image-rs/build.sh new file mode 100755 index 000000000..c33f11cb7 --- /dev/null +++ b/projects/image-rs/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. +# +################################################################################ + +cargo fuzz build -O +cargo fuzz list | while read i; do + cp fuzz/target/x86_64-unknown-linux-gnu/release/$i $OUT/ +done diff --git a/projects/image-rs/project.yaml b/projects/image-rs/project.yaml new file mode 100644 index 000000000..62ae5800d --- /dev/null +++ b/projects/image-rs/project.yaml @@ -0,0 +1,11 @@ +homepage: "https://docs.rs/image/0.23.14/image" +main_repo: "https://github.com/image-rs/image" +primary_contact: "andreas.molzer@gmx.de" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +language: rust +auto_ccs: + - "fintelia@gmail.com" + - "p.antoine@catenacyber.fr"