diff options
author | Ryan Prichard <rprichard@google.com> | 2020-04-20 17:59:18 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2020-04-21 16:27:15 -0700 |
commit | 771da6f500352168a1bc1898495261652415b08e (patch) | |
tree | 76b32b895e8a63498042f849233f48b3270f11ed /libc/malloc_debug/malloc_debug.cpp | |
parent | 79cd1b6f804dee64346cb170edaa8093833ca0bb (diff) |
android_get_exported_namespace: acquire g_dl_mutex
android_get_exported_namespace searches g_exported_namespaces, which
isn't modified after process initialization, but it does the search
using a new std::string object, and the linker's malloc/free functions
aren't thread-safe. (They're protected by the same lock (g_dl_mutex) as
the rest of the linker's state.)
Bug: http://b/150372650
Test: bionic-unit-tests
Change-Id: Iafd12e5ab36ae61f0642aad59939f528d31bda16
(cherry picked from commit c2a93792fc9799d0c2f07f260f52e533e3bd178e)
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions