diff --git a/projects/trust-dns/Dockerfile b/projects/trust-dns/Dockerfile new file mode 100644 index 000000000..6ec071629 --- /dev/null +++ b/projects/trust-dns/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/bluejekyll/trust-dns trust-dns +WORKDIR trust-dns +COPY build.sh $SRC/ diff --git a/projects/trust-dns/build.sh b/projects/trust-dns/build.sh new file mode 100755 index 000000000..680aec5a9 --- /dev/null +++ b/projects/trust-dns/build.sh @@ -0,0 +1,19 @@ +#!/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. +# +################################################################################ + +cargo fuzz build -O +cp fuzz/target/x86_64-unknown-linux-gnu/release/message $OUT/ diff --git a/projects/trust-dns/project.yaml b/projects/trust-dns/project.yaml new file mode 100644 index 000000000..268c15f80 --- /dev/null +++ b/projects/trust-dns/project.yaml @@ -0,0 +1,12 @@ +homepage: "https://github.com/bluejekyll/trust-dns" +language: rust +main_repo: "https://github.com/bluejekyll/trust-dns" +primary_contact: "bluejekyll@gmail.com" +auto_ccs: + - djc.ochtman@gmail.com +sanitizers: + - address +fuzzing_engines: + - libfuzzer +vendor_ccs: + - maxnair.dev@gmail.com