[Libreoffice-commits] core.git: bin/oss-fuzz-build.sh

MarcoFalke (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 3 08:56:51 UTC 2021


 bin/oss-fuzz-build.sh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ae837fc93d326919c5003876186d7bce1dae6bce
Author:     MarcoFalke <falke.marco at gmail.com>
AuthorDate: Thu Jun 3 08:06:43 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jun 3 10:56:13 2021 +0200

    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 at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

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


More information about the Libreoffice-commits mailing list