summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-06-09 14:44:13 +0300
committerMonty <monty@mariadb.org>2021-06-14 17:03:19 +0300
commit9c778285ea0f099f968382d6c71dd2e9d522e7c7 (patch)
treef8972579e1cad4847663c8cdc0f0fa8ade6e9d7a /BUILD
parent193bfdd831bbbf65e74acd12baf691d4305e3c11 (diff)
downloadmariadb-git-9c778285ea0f099f968382d6c71dd2e9d522e7c7.tar.gz
Added comments to some BUILD scripts
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/compile-pentium64-asan-max7
-rwxr-xr-xBUILD/compile-pentium64-ubsan8
2 files changed, 14 insertions, 1 deletions
diff --git a/BUILD/compile-pentium64-asan-max b/BUILD/compile-pentium64-asan-max
index 37acc9f74f3..cedf5254e59 100755
--- a/BUILD/compile-pentium64-asan-max
+++ b/BUILD/compile-pentium64-asan-max
@@ -17,7 +17,12 @@
path=`dirname $0`
. "$path/SETUP.sh"
-extra_flags="$pentium64_cflags $debug_cflags -lasan -O -g -fsanitize=address -USAFEMALLOC -UFORCE_INIT_OF_VARS -Wno-uninitialized -Wno-maybe-uninitialized"
+#
+# Enable AddressSanitzer, a fast memory error detector.
+# Detects "Out of bounds" and "use-after-free" memory errors
+#
+
+extra_flags="$pentium64_cflags $debug_cflags -lasan -O -g -fsanitize=address -USAFEMALLOC -UFORCE_INIT_OF_VARS -Wno-uninitialized -Wno-maybe-uninitialized -DMYSQL_SERVER_SUFFIX=-asan-max"
extra_configs="$pentium_configs $debug_configs $valgrind_configs $max_configs $disable_asan_plugins"
export LDFLAGS="-ldl"
diff --git a/BUILD/compile-pentium64-ubsan b/BUILD/compile-pentium64-ubsan
index 1a2b45413b0..538b5e884cf 100755
--- a/BUILD/compile-pentium64-ubsan
+++ b/BUILD/compile-pentium64-ubsan
@@ -23,6 +23,14 @@
path=`dirname $0`
. "$path/SETUP.sh"
+#
+# Enable UBSAN, UndefinedBehaviorSanitizer. Detects undefined behavior like:
+# - Using misaligned or null pointer
+# - Signed integer overflow
+# - Conversion to, from, or between floating-point types which would overflow
+# the destination
+#
+
extra_flags="$pentium64_cflags $debug_cflags -fsanitize=undefined -DWITH_UBSAN -Wno-conversion -Wno-uninitialized"
extra_configs="$pentium_configs $debug_configs -DWITH_UBSAN=ON -DMYSQL_MAINTAINER_MODE=NO --without-spider"