From 1724d7db282ac997dc6d8e9d1e63486e141388f5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 25 Feb 2018 15:32:50 +0000 Subject: oss-fuzz: issue 1188, per-fuzzer config instead of copying the whole bunch around, now the scheme is to copy each individual fuzzer and matching config around, so duplicate the previously shared config for each one an Change-Id: I479ea13abfab382b6aee23bc04d5f7e535b489c9 --- bin/oss-fuzz-build.sh | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh index 99e90c937bb4..08330daffe2b 100755 --- a/bin/oss-fuzz-build.sh +++ b/bin/oss-fuzz-build.sh @@ -20,15 +20,25 @@ export ASAN_OPTIONS="detect_leaks=0" make fuzzers -#some minimal fonts required -cp $SRC/libreoffice/extras/source/truetype/symbol/opens___.ttf instdir/share/fonts/truetype/Liberation* $OUT -#minimal runtime requirements -rm -rf $OUT/services $OUT/types $OUT/*rdb -mkdir $OUT/services pushd instdir/program -cp -r *fuzzer unorc fundamentalrc types.rdb types $OUT -head -c -14 services.rdb > $OUT/services.rdb -tail -c +85 ./services/services.rdb >> $OUT/services.rdb +head -c -14 services.rdb > templateservices.rdb +tail -c +85 ./services/services.rdb >> templateservices.rdb +for a in *fuzzer; do + #some minimal fonts required + cp $a $OUT + mkdir -p $OUT/$a.fonts + cp $SRC/libreoffice/extras/source/truetype/symbol/opens___.ttf ../share/fonts/truetype/Liberation* $OUT/$a.fonts + #minimal runtime requirements + cp templateservices.rdb $OUT/$a.services.rdb + cp types.rdb $OUT/$a.types.rdb + cp types/offapi.rdb $OUT/$a.moretypes.rdb + cat > $OUT/$a.unorc << EOF +[Bootstrap] +URE_INTERNAL_LIB_DIR=\${ORIGIN} +UNO_TYPES=\${ORIGIN}/$a.types.rdb \${ORIGIN}/$a.moretypes.rdb +UNO_SERVICES=\${ORIGIN}/$a.services.rdb +EOF +done popd #starting corpuses -- cgit