Skip to content

Commit

Permalink
Bug 1177759 - Set default value for $disabled[] and a default corpus …
Browse files Browse the repository at this point in the history
…for fuzzers without one r=me
  • Loading branch information
Tim Taubert committed Jan 25, 2017
1 parent aab8ea3 commit b41c93d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion automation/ossfuzz/build.sh
Expand Up @@ -16,13 +16,15 @@ CXX="$CXX -stdlib=libc++" CXXFLAGS="$CXXFLAGS -I$SRC/libfuzzer" \
# Find fuzzing targets.
for fuzzer in $(find ../dist/Debug/bin -name "nssfuzz-*" -printf "%f\n"); do
name=${fuzzer:8}
[ "${disabled[$name]}" ] && continue;
[ -n "${disabled[$name]:-}" ] && continue;

# Copy the binary.
cp ../dist/Debug/bin/$fuzzer $OUT/$name

# Zip and copy the corpus, if any.
if [ -d "$SRC/nss-corpus/$name" ]; then
zip $OUT/${name}_seed_corpus.zip $SRC/nss-corpus/$name/*
else
zip $OUT/${name}_seed_corpus.zip $SRC/nss-corpus/*/*
fi
done

0 comments on commit b41c93d

Please sign in to comment.