From 5efc05bf398ace1170b3e6e2276d79342f1f607a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 25 Nov 2017 15:55:18 +0000 Subject: [PATCH] ofz#4424 black list the div by zero calc cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I30d06e762901027a50586fcd17398d74ab349373 Reviewed-on: https://gerrit.libreoffice.org/45272 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- bin/oss-fuzz-build.sh | 2 +- bin/sanitize-blacklist.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 bin/sanitize-blacklist.txt diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh index 812d632316bd..1dd26028e203 100755 --- a/bin/oss-fuzz-build.sh +++ b/bin/oss-fuzz-build.sh @@ -7,7 +7,7 @@ fi #shuffle CXXFLAGS -stdlib=libc++ arg into CXX as well because we use #the CXX as the linker and need to pass -stdlib=libc++ to build -export CXX="$CXX -stdlib=libc++" +export CXX="$CXX -stdlib=libc++ -fsanitize-blacklist=$SRC/libreoffice/bin/sanitize-blacklist.txt" #similarly force the -fsanitize etc args in as well as pthread to get #things to link successfully during the build export LDFLAGS="$CFLAGS -lpthread" diff --git a/bin/sanitize-blacklist.txt b/bin/sanitize-blacklist.txt new file mode 100644 index 000000000000..7c97ff4abd51 --- /dev/null +++ b/bin/sanitize-blacklist.txt @@ -0,0 +1,5 @@ +[float-divide-by-zero] +src:*/sc/source/core/tool/interpr1.cxx +src:*/sc/source/core/tool/interpr2.cxx +src:*/scaddins/source/analysis/analysis.cxx +src:*/scaddins/source/analysis/financial.cxx