diff options
author | Steven Laver <lavers@google.com> | 2020-02-04 22:57:29 -0800 |
---|---|---|
committer | Steven Laver <lavers@google.com> | 2020-02-04 22:57:29 -0800 |
commit | fd7ab6bab114890bbf4a74d304de92288c9c80e6 (patch) | |
tree | b1ed639ab18b90d8e03064ac01b3283d164d3b6d /libc/malloc_debug/malloc_debug.cpp | |
parent | 531ff2f12699e59d3cbd4f409c62af64104fc968 (diff) | |
parent | 6c691a9af5609be37bf5de7ef2d48e498c29e9e7 (diff) |
Merge RP1A.200204.001
Change-Id: Ief66494e3f158448edb3f131363437cd3c927883
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
-rw-r--r-- | libc/malloc_debug/malloc_debug.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp index 3da694c75..2eea86650 100644 --- a/libc/malloc_debug/malloc_debug.cpp +++ b/libc/malloc_debug/malloc_debug.cpp @@ -45,6 +45,7 @@ #include <android-base/file.h> #include <android-base/properties.h> #include <android-base/stringprintf.h> +#include <bionic/malloc_tagged_pointers.h> #include <private/bionic_malloc_dispatch.h> #include <private/MallocXmlElem.h> @@ -906,6 +907,7 @@ ssize_t debug_malloc_backtrace(void* pointer, uintptr_t* frames, size_t max_fram if (!(g_debug->config().options() & BACKTRACE)) { return 0; } + pointer = UntagPointer(pointer); return PointerData::GetFrames(pointer, frames, max_frames); } |