[compiler-rt] [sanitizer] Always report invalid aligned operator new requests (PR #225847)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 15:04:01 PDT 2026


================
@@ -40,23 +41,32 @@
 #  define OPERATOR_NEW_BODY_ARRAY_NOTHROW \
     GET_MALLOC_STACK_TRACE;               \
     return hwasan_malloc(size, &stack)
+#  define CHECK_ALIGNED_NEW_ALIGNMENT                                       \
----------------
vitalybuka wrote:

CHECK_ALIGNED_NEW_ALIGNMENT macro is inconsistent with how it's done in other sanitizers,
I don't have preference other than make it consistent

https://github.com/llvm/llvm-project/pull/225847


More information about the llvm-commits mailing list