From 57795ec50279be7b362d5507a6fe7616e109c26c Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 28 Dec 2016 09:33:59 -0500 Subject: [PATCH] [gnutls] If the upstream repo has a corpus, include it (#222) --- projects/gnutls/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/gnutls/build.sh b/projects/gnutls/build.sh index 52c77de40..be59d3cb3 100755 --- a/projects/gnutls/build.sh +++ b/projects/gnutls/build.sh @@ -31,4 +31,9 @@ for f in $fuzzers; do if [ -f "$SRC/${fuzzer}_seed_corpus.zip" ]; then cp "$SRC/${fuzzer}_seed_corpus.zip" "$OUT/" fi + + corpus_dir=$(basename "${fuzzer}" "_fuzzer") + if [ -d "devel/fuzz/${corpus_dir}.in/" ]; then + zip -r "$OUT/${fuzzer}_seed_corpus.zip" "devel/fuzz/${corpus_dir}.in/" + fi done