about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build/build.sh5
-rw-r--r--scripts/build/sanitizer/klee.txt2
-rw-r--r--scripts/build/sanitizer/sqlite.txt2
-rw-r--r--utils/sanitizers/ubsan.txt6
4 files changed, 15 insertions, 0 deletions
diff --git a/scripts/build/build.sh b/scripts/build/build.sh
index 2ddb7bd6..65fe4ee0 100755
--- a/scripts/build/build.sh
+++ b/scripts/build/build.sh
@@ -328,6 +328,11 @@ build_docker() {
     for f in "${DIR}/patches/${v}"*.patch; do
       cp -r "$f" "${temp_dir}/patches/"
     done
+
+    mkdir -p "${temp_dir}/sanitizer"
+    for f in "${DIR}/sanitizer/${v}"*.txt; do
+      cp -r "$f" "${temp_dir}/sanitizer/"
+    done
   done
   shopt -u nullglob # disallow nullglobing
 
diff --git a/scripts/build/sanitizer/klee.txt b/scripts/build/sanitizer/klee.txt
new file mode 100644
index 00000000..856aba57
--- /dev/null
+++ b/scripts/build/sanitizer/klee.txt
@@ -0,0 +1,2 @@
+# checkMemoryUsage depends on the malloc library linked with, ignore it
+fun:_ZN4klee4util19GetTotalMallocUsageEv
diff --git a/scripts/build/sanitizer/sqlite.txt b/scripts/build/sanitizer/sqlite.txt
new file mode 100644
index 00000000..6b3ce57a
--- /dev/null
+++ b/scripts/build/sanitizer/sqlite.txt
@@ -0,0 +1,2 @@
+# Ignore uninit memory for sqlite3 external fstat call
+src:sqlite3.c
diff --git a/utils/sanitizers/ubsan.txt b/utils/sanitizers/ubsan.txt
index 97a66000..8a2d3d23 100644
--- a/utils/sanitizers/ubsan.txt
+++ b/utils/sanitizers/ubsan.txt
@@ -1,3 +1,9 @@
 # Runtime suppression of undefined behavior
 #
 vptr_check:Module.h
+vptr:gtest.cc
+vptr:gtest.h
+vptr:gtest-death-test.cc
+vptr:gtest-matchers.h
+vptr:shared_ptr_base.h
+shift-base:constantbv.cpp