summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2021-06-02 14:43:29 +0100
committerFlorian Mayer <fmayer@google.com>2021-06-04 11:15:27 +0100
commitb887dc0b5c5ac8ffa993a1ac6899ae92b6dbe8cb (patch)
tree790d939aa65ad043194b9604e8fe13b68d862955 /libc/malloc_debug/tests/malloc_debug_system_tests.cpp
parenta3b1926d75c2e46083429ae1e952035480dc3221 (diff)
Fix dangling pointer in heapprofd API.
We would dlopen heapprofd_client.so, which has a static initializer [1] that passes a pointer to of its functions to heapprofd_client_api.so. If we dlclose heapprofd_client.so, this pointer is dangling. [1]: https://cs.android.com/android/platform/superproject/+/master:external/perfetto/src/profiling/memory/malloc_interceptor_bionic_hooks.cc?q=symbol:g_heap_id This is a cherry-pick of 85c7838bd9cb40949c08d957499357547c7cd687. Bug: 189332777 Change-Id: Ia4a9d9dd7c89eceec86c6fac5f4b66de85d7604e
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_system_tests.cpp')
0 files changed, 0 insertions, 0 deletions