From f1cea6dcc04393354430c0ea625328859ac1ebf8 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Thu, 9 Dec 2021 14:04:59 +0000 Subject: [PATCH] When running with options that enable ubsan, define ROCKSDB_UBSAN_RUN which disables ubsan instrumentation for some functions within rocksdb that are false-positives. (#3579) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba11c848..00898392 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,6 +253,7 @@ else() add_compile_options(-fsanitize=address,undefined) endif() add_definitions(-DED25519_NO_INLINE_ASM) + add_definitions(-DROCKSDB_UBSAN_RUN) elseif(${USING_TSAN}) add_compile_options(-fsanitize=thread) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")