diff options
author | Ryan Prichard <rprichard@google.com> | 2020-04-20 17:59:18 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2020-04-20 17:59:43 -0700 |
commit | c2a93792fc9799d0c2f07f260f52e533e3bd178e (patch) | |
tree | 900de35e5d3eaa76c94a8eaa7bf16ef9ba259a3f /libc/malloc_debug/tests/malloc_debug_system_tests.cpp | |
parent | 0361a4f8670a963c3724d78fbd8ec258b16a732b (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
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_system_tests.cpp')
0 files changed, 0 insertions, 0 deletions