diff options
author | Ryan Prichard <rprichard@google.com> | 2019-04-18 22:47:04 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2019-04-19 17:16:16 -0700 |
commit | 4b6c0f5dce5ad8d93e4e707977e09153a5399139 (patch) | |
tree | a6cb5df96d21f0aca90c12b5fba1ee172cd3b62d /libc/malloc_hooks/tests/malloc_hooks_tests.cpp | |
parent | 9586c0f4f421e63342074eeae9806cf11d622703 (diff) |
PIMutexUnlock: load owner_tid in non-common case
For a recursive or errorcheck PI mutex, the old_owner variable wasn't
being initialized. As a result, unlocking a doubly-locked recursive
mutex owned by another thread decremented the mutex counter. Instead, the
unlock call should fail with EPERM.
Bug: http://b/130841532
Test: bionic-unit-tests
Test: bionic-unit-tests-glibc --gtest_filter='pthread.pthread_mutex_lock*'
Change-Id: I37adb094cb2ce8d51df7b4f48e8d6bc144436418
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions