diff options
| author | xumingjie.enna1 <xumingjie.enna1@bytedance.com> | 2025-08-18 16:05:02 +0800 |
|---|---|---|
| committer | xumingjie.enna1 <xumingjie.enna1@bytedance.com> | 2025-08-18 16:05:08 +0800 |
| commit | f16887628741978881606e83593ca39f44774fee (patch) | |
| tree | 8c44eeb88bb54cb62104fe10b72f2867341cbe07 | |
| parent | 5d300afa8060c3a4d3c26b5eebc19550ab21e052 (diff) | |
[hwasan] Fix suppression of leaks from dlsymusers/Enna1/fix-hwasan-leak-suppress
Header "lsan/lsan_common.h" is not included, CAN_SANITIZE_LEAKS macro is
expanded to 0, so suppression of leaks from dlsym doesn't take effect.
| -rw-r--r-- | compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp b/compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp index 25ca0a3b0b68..7609e6cd65b7 100644 --- a/compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp +++ b/compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp @@ -14,6 +14,7 @@ #include "hwasan.h" #include "interception/interception.h" +#include "lsan/lsan_common.h" #include "sanitizer_common/sanitizer_allocator_dlsym.h" #include "sanitizer_common/sanitizer_allocator_interface.h" #include "sanitizer_common/sanitizer_mallinfo.h" |
