Skip to content

Commit

Permalink
Reapply "[rustls] Add seed corpus (#10179)" (#12750)
Browse files Browse the repository at this point in the history
This reinstates the corpus source, now living at
rustls/rustls-fuzzing-corpora.
  • Loading branch information
ctz committed Feb 14, 2025
1 parent 9af5bc7 commit 8ab8560
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects/rustls/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apt-get --yes update \
&& rm --recursive --force /var/lib/apt/lists/*

RUN git clone https://github.com/ctz/rustls
RUN git clone --depth 1 https://github.com/rustls/rustls-fuzzing-corpora

WORKDIR $SRC

Expand Down
5 changes: 5 additions & 0 deletions projects/rustls/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ for f in $SRC/rustls/fuzz/fuzzers/*.rs
do
FUZZ_TARGET=$(basename ${f%.*})
cp fuzz/target/x86_64-unknown-linux-gnu/release/${FUZZ_TARGET} $OUT/
if [[ -d $SRC/rustls-fuzzing-corpora/$FUZZ_TARGET/ ]]; then
zip -jr \
$OUT/${FUZZ_TARGET}_seed_corpus.zip \
$SRC/rustls-fuzzing-corpora/$FUZZ_TARGET/
fi
done

if [ "$SANITIZER" == "coverage" ]
Expand Down

0 comments on commit 8ab8560

Please sign in to comment.