about summary refs log tree commit diff homepage
path: root/scripts/build
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2023-02-23 22:02:53 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-03-17 22:38:16 +0000
commit03fa34c4e51351b357b84a27c705aac5e0a5e68b (patch)
tree91d70ff83c4c52017c6cb78c4be45fdbd7c80c2a /scripts/build
parentca60811f5d55254bec378919430dd0e7e6e5cdd1 (diff)
downloadklee-03fa34c4e51351b357b84a27c705aac5e0a5e68b.tar.gz
Add support to disable memsan instrumentation; update UB/Asan suppression
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/build.sh5
-rw-r--r--scripts/build/sanitizer/klee.txt2
-rw-r--r--scripts/build/sanitizer/sqlite.txt2
3 files changed, 9 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