From f57e625a479a443e3279b2d7335e552a9102a0ac Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Sat, 28 Aug 2021 12:17:19 +0200 Subject: [PATCH] UBSan CI: Remove unsigned-shift-base sanitizer flag. --- cmake/EthCompilerSettings.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index 9ed613758..d26060383 100644 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -199,8 +199,8 @@ if (SANITIZE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope") elseif (sanitizer STREQUAL "undefined") # The following flags not used by fuzzer but used by us may create problems, so consider - # disabling them: alignment, pointer-overflow, unsigned-shift-base. - # Flags are alphabetically sorted + # disabling them: alignment, pointer-overflow. + # Flags are alphabetically sorted and are for clang v10.0 list(APPEND undefinedSanitizerChecks alignment array-bounds @@ -218,7 +218,6 @@ if (SANITIZE) shift signed-integer-overflow unsigned-integer-overflow - unsigned-shift-base unreachable vla-bound vptr