diff options
author | Tim Taubert <ttaubert@mozilla.com> | 2017-01-25 17:21:53 +0100 |
---|---|---|
committer | Tim Taubert <ttaubert@mozilla.com> | 2017-01-25 17:21:53 +0100 |
commit | 4b6df262a3d4f54e4a1f631d1e4c8973e9b22d86 (patch) | |
tree | 9e2ac86dae5f75e8861dff474f2c52de268e9301 /automation/ossfuzz | |
parent | 6e5532c1795058d540fbcc33c0973e53c5d725eb (diff) | |
download | nss-hg-4b6df262a3d4f54e4a1f631d1e4c8973e9b22d86.tar.gz |
Bug 1177759 - Set default value for $disabled[] and a default corpus for fuzzers without one r=me
Diffstat (limited to 'automation/ossfuzz')
-rwxr-xr-x | automation/ossfuzz/build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/automation/ossfuzz/build.sh b/automation/ossfuzz/build.sh index 565cb39a1..2a74426aa 100755 --- a/automation/ossfuzz/build.sh +++ b/automation/ossfuzz/build.sh @@ -16,7 +16,7 @@ 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 @@ -24,5 +24,7 @@ for fuzzer in $(find ../dist/Debug/bin -name "nssfuzz-*" -printf "%f\n"); do # 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 |