summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-06-03 08:06:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-06-03 10:56:13 +0200
commitae837fc93d326919c5003876186d7bce1dae6bce (patch)
tree2d9453d77dddded5fcf3d1d0dca3b4b97755a552 /bin
parente33290f3ea2b347683912ff89615ba3ae6298dde (diff)
Avoid timeout in bin/oss-fuzz-build.sh
This may fix https://github.com/google/oss-fuzz/issues/5855 A similar recent fix was https://github.com/google/oss-fuzz/pull/5858 It is assumed that the oss-fuzz builder HDD is too slow, leading to a timeout. Fix that by breaking the bash wildcard expansion into a for loop. I did not test this change. Change-Id: I3db367d604c46b3d15c91f530fb103ca005b0bc0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116642 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oss-fuzz-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh
index 4ebecd6f3c11..f5fa83cab88b 100755
--- a/bin/oss-fuzz-build.sh
+++ b/bin/oss-fuzz-build.sh
@@ -48,7 +48,9 @@ popd
df -h $OUT $WORK
#starting corpuses
-cp $SRC/*_seed_corpus.zip $OUT
+for zip_file in $SRC/*_seed_corpus.zip; do
+ cp $zip_file $OUT
+done
#fuzzing dictionaries
cp $SRC/*.dict $OUT
#options files