diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-12-13 18:47:50 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2022-01-02 07:07:56 +0100 |
commit | 7f5140fb8cf3d127b5cb8704d277b03de2f63b51 (patch) | |
tree | 07f5000724db236688665220450b72a8fe7df862 /bin | |
parent | 126424cbfa70dea1186070a8986c020778ca7c96 (diff) |
oss-fuzz: put LO downloads into $SRC/external-tar
Change-Id: I0d5cf89fabc8e044959dbd0af484b5ca46404eac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127854
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/oss-fuzz-build.sh | 6 | ||||
-rwxr-xr-x | bin/oss-fuzz-setup.sh | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh index 0b5e0c05e462..3d0685f88e2a 100755 --- a/bin/oss-fuzz-build.sh +++ b/bin/oss-fuzz-build.sh @@ -38,7 +38,7 @@ if [ -f Makefile ]; then fi print_stamp 0 autogen.sh -$SRC/libreoffice/autogen.sh --with-distro=LibreOfficeOssFuzz --with-external-tar=$SRC +$SRC/libreoffice/autogen.sh --with-distro=LibreOfficeOssFuzz --with-external-tar=$SRC/external-tar print_stamp 1 make make @@ -52,8 +52,8 @@ for a in *fuzzer; do #some minimal fonts required mv $a $OUT mkdir -p $OUT/$a.fonts - tar -x -C $OUT/$a.fonts --strip-components=1 --wildcards --no-anchored '*.ttf' -f $SRC/liberation-fonts-ttf* - cp $SRC/*opens___.ttf $OUT/$a.fonts + tar -x -C $OUT/$a.fonts --strip-components=1 --wildcards --no-anchored '*.ttf' -f $SRC/external-tar/liberation-fonts-ttf* + cp $SRC/external-tar/*opens___.ttf $OUT/$a.fonts #minimal runtime requirements cp templateservices.rdb $OUT/$a.services.rdb cp types.rdb $OUT/$a.types.rdb diff --git a/bin/oss-fuzz-setup.sh b/bin/oss-fuzz-setup.sh index 18c3fcfb68d9..5566d845f66c 100755 --- a/bin/oss-fuzz-setup.sh +++ b/bin/oss-fuzz-setup.sh @@ -7,7 +7,8 @@ echo start downloading dependencies at `date -u` # convert FOO := BAR$(MICRO) to FOO=BAR$MICRO source <(sed -e's# := #=#g' download.lst | sed -e 's#[)(]##g') -cd $SRC +mkdir $SRC/external-tar +cd $SRC/external-tar #cache build dependencies curl --no-progress-meter -S \ @@ -70,6 +71,9 @@ curl --no-progress-meter -S \ -C - -O https://dev-www.libreoffice.org/src/$EPUBGEN_TARBALL \ -C - -O https://dev-www.libreoffice.org/src/$LIBNUMBERTEXT_TARBALL \ -C - -O https://dev-www.libreoffice.org/src/$QXP_TARBALL + +cd $SRC + #fuzzing dictionaries curl --no-progress-meter -S \ -C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/gif.dict \ |