diff --git a/projects/noyalib/Dockerfile b/projects/noyalib/Dockerfile new file mode 100644 index 000000000000..765056808af8 --- /dev/null +++ b/projects/noyalib/Dockerfile @@ -0,0 +1,20 @@ +# Copyright 2026 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 git clone --depth 1 https://github.com/sebastienrousseau/noyalib noyalib +WORKDIR noyalib +COPY build.sh $SRC/ diff --git a/projects/noyalib/build.sh b/projects/noyalib/build.sh new file mode 100644 index 000000000000..c1993ff937d0 --- /dev/null +++ b/projects/noyalib/build.sh @@ -0,0 +1,30 @@ +#!/bin/bash -eu +# Copyright 2026 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/noyalib/fuzz" + +cargo fuzz build -O --debug-assertions + +# Every [[bin]] in fuzz/Cargo.toml is a target; ship each with the +# shared seed corpus and the YAML dictionary. +FUZZ_TARGET_OUTPUT_DIR="target/x86_64-unknown-linux-gnu/release" +for f in fuzz_targets/*.rs; do + target=$(basename "$f" .rs) + cp "$FUZZ_TARGET_OUTPUT_DIR/$target" "$OUT/" + zip -q -j "$OUT/${target}_seed_corpus.zip" corpus/seed/* + cp yaml.dict "$OUT/${target}.dict" +done diff --git a/projects/noyalib/project.yaml b/projects/noyalib/project.yaml new file mode 100644 index 000000000000..d7c6efb5b602 --- /dev/null +++ b/projects/noyalib/project.yaml @@ -0,0 +1,9 @@ +homepage: "https://github.com/sebastienrousseau/noyalib" +main_repo: "https://github.com/sebastienrousseau/noyalib" +language: rust +primary_contact: "sebastian.rousseau@gmail.com" +fuzzing_engines: + - libfuzzer +sanitizers: + - address +vendor_ccs: []