aboutsummaryrefslogtreecommitdiff
path: root/libc/bionic/heap_tagging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/heap_tagging.cpp')
-rw-r--r--libc/bionic/heap_tagging.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/bionic/heap_tagging.cpp b/libc/bionic/heap_tagging.cpp
index 49b02daf7..4b3d43c21 100644
--- a/libc/bionic/heap_tagging.cpp
+++ b/libc/bionic/heap_tagging.cpp
@@ -52,6 +52,9 @@ void SetDefaultHeapTaggingLevel() {
globals->heap_pointer_tag = (reinterpret_cast<uintptr_t>(POINTER_TAG) << TAG_SHIFT) |
(0xffull << CHECK_SHIFT) | (0xffull << UNTAG_SHIFT);
});
+#if defined(USE_SCUDO)
+ scudo_malloc_disable_memory_tagging();
+#endif // USE_SCUDO
break;
#if defined(USE_SCUDO)
case M_HEAP_TAGGING_LEVEL_SYNC: