diff options
| author | Florian Mayer <fmayer@google.com> | 2021-06-02 14:43:29 +0100 |
|---|---|---|
| committer | Florian Mayer <fmayer@google.com> | 2021-06-02 14:48:53 +0100 |
| commit | 85c7838bd9cb40949c08d957499357547c7cd687 (patch) | |
| tree | 15d12ca61ac831cde7292077d09fc70747e83e34 /libc/malloc_debug/malloc_debug.cpp | |
| parent | 64be12fbc964bfe0247f69e5c00249f8043d480d (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
Bug: 189332777
Change-Id: Ia4a9d9dd7c89eceec86c6fac5f4b66de85d7604e
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions
