[PATCH] D145459: [hwasan] Add non-exception variant of operator delete[] for hwasan
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 18:35:41 PST 2023
leonardchan created this revision.
leonardchan added reviewers: mcgrathr, vitalybuka.
leonardchan added a project: Sanitizers.
Herald added a subscriber: Enna1.
Herald added a project: All.
leonardchan requested review of this revision.
Herald added a subscriber: Sanitizers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145459
Files:
compiler-rt/lib/hwasan/hwasan_new_delete.cpp
Index: compiler-rt/lib/hwasan/hwasan_new_delete.cpp
===================================================================
--- compiler-rt/lib/hwasan/hwasan_new_delete.cpp
+++ compiler-rt/lib/hwasan/hwasan_new_delete.cpp
@@ -142,6 +142,14 @@
void *ptr, std::align_val_t, std::nothrow_t const &) NOEXCEPT {
OPERATOR_DELETE_BODY;
}
+INTERCEPTOR_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE void operator delete(
+ void *ptr, size_t, std::align_val_t) NOEXCEPT {
+ OPERATOR_DELETE_BODY;
+}
+INTERCEPTOR_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE void operator delete[](
+ void *ptr, size_t, std::align_val_t) NOEXCEPT {
+ OPERATOR_DELETE_BODY;
+}
INTERCEPTOR_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE void operator delete(
void *ptr, size_t, std::align_val_t, std::nothrow_t const &) NOEXCEPT {
OPERATOR_DELETE_BODY;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145459.502898.patch
Type: text/x-patch
Size: 812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230307/524d1a1b/attachment.bin>
More information about the llvm-commits
mailing list