[PATCH] D116861: [UBSan] Fix incorrect alignment reported when global new returns an offset pointer
Lambert Clara via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 8 10:07:38 PST 2022
belkiss updated this revision to Diff 398346.
belkiss added a comment.
Disable the test in ubsan-msan and ubsan-tsan since they also override global new, causing link error.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116861/new/
https://reviews.llvm.org/D116861
Files:
compiler-rt/test/ubsan/TestCases/TypeCheck/global-new-alignment.cpp
Index: compiler-rt/test/ubsan/TestCases/TypeCheck/global-new-alignment.cpp
===================================================================
--- compiler-rt/test/ubsan/TestCases/TypeCheck/global-new-alignment.cpp
+++ compiler-rt/test/ubsan/TestCases/TypeCheck/global-new-alignment.cpp
@@ -1,5 +1,7 @@
// RUN: %clangxx -fsanitize=alignment %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not="runtime error" -allow-empty
+// Disable with msan and tsan because they also override global new
+// UNSUPPORTED: ubsan-msan, ubsan-tsan
#include <cassert>
#include <cstddef>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116861.398346.patch
Type: text/x-patch
Size: 589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220108/ce85cf3b/attachment.bin>
More information about the cfe-commits
mailing list