[PATCH] D28686: Fix UBSan bots by blacklisting bits/stl_tree.h.
Ivan Krasin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 09:41:16 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291918: Fix UBSan bots by blacklisting bits/stl_tree.h. (authored by krasin).
Changed prior to commit:
https://reviews.llvm.org/D28686?vs=84328&id=84329#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28686
Files:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
llvm/trunk/utils/sanitizers/ubsan_blacklist.txt
Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
@@ -555,6 +555,8 @@
append_common_sanitizer_flags()
append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all"
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+ append("-fsanitize-blacklist=${CMAKE_SOURCE_DIR}/utils/sanitizers/ubsan_blacklist.txt"
+ CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
elseif (LLVM_USE_SANITIZER STREQUAL "Thread")
append_common_sanitizer_flags()
append("-fsanitize=thread" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
Index: llvm/trunk/utils/sanitizers/ubsan_blacklist.txt
===================================================================
--- llvm/trunk/utils/sanitizers/ubsan_blacklist.txt
+++ llvm/trunk/utils/sanitizers/ubsan_blacklist.txt
@@ -0,0 +1,7 @@
+# This blacklist should be applied when LLVM is built
+# with -fsanitize=undefined instrumentation. It exists
+# because libstdc++ has some undefined behavior issues
+# in some of the headers, in particular, stl_tree.h.
+
+# upcast of address with insufficient space for an object of type std::_Rb_tree_node<...>
+src:*bits/stl_tree.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28686.84329.patch
Type: text/x-patch
Size: 1293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170113/09445835/attachment.bin>
More information about the llvm-commits
mailing list