summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-25 15:55:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-25 17:38:14 +0100
commit5efc05bf398ace1170b3e6e2276d79342f1f607a (patch)
treef31e1808485e7d52007f7677ef6d48e0c253b58e /bin
parent2569e688ed34dac7282e362a6f0432e1e26cfae4 (diff)
ofz#4424 black list the div by zero calc cases
Change-Id: I30d06e762901027a50586fcd17398d74ab349373 Reviewed-on: https://gerrit.libreoffice.org/45272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oss-fuzz-build.sh2
-rw-r--r--bin/sanitize-blacklist.txt5
2 files changed, 6 insertions, 1 deletions
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