diff options
author | Kazuhiro Inaba <kinaba@google.com> | 2020-01-09 10:58:51 +0900 |
---|---|---|
committer | Kazuhiro Inaba <kinaba@google.com> | 2020-01-09 10:58:51 +0900 |
commit | 9ad48b6a280ccabd81bb734002db03f016067bba (patch) | |
tree | a946897f9b920de4d9add5d3be6b7f5f5490f5d1 | |
parent | 7d7a98135648562c5fa9840de6a7405a5dbb8932 (diff) | |
download | bionic-9ad48b6a280ccabd81bb734002db03f016067bba.tar.gz |
Fix uninitialized memory read in pthread_leak#detach.
The bug was introduced in
https://android-review.googlesource.com/c/platform/bionic/+/959440 (pie)
and fixed as a part of
https://android-review.googlesource.com/c/platform/bionic/+/1101845 (master).
This CL is the minimal backport of the master branch fix to pie-cts-dev.
Bug: 147393158
Test: pthread_leak#detach on 2-core devices always pass
Change-Id: I8d17f1cfea47aba9fca06e40148ce9f7c24e0a3e
-rw-r--r-- | tests/leak_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/leak_test.cpp b/tests/leak_test.cpp index 457dc5581..fc72c4589 100644 --- a/tests/leak_test.cpp +++ b/tests/leak_test.cpp @@ -154,7 +154,7 @@ TEST(pthread_leak, detach) { pthread_barrier_wait(&barrier); ASSERT_EQ(pthread_barrier_destroy(&barrier), 0); - WaitUntilAllExited(tids, arraysize(tids)); + WaitUntilAllExited(tids, threads_count); // A native bridge implementation might need a warm up pass to reach a steady state. // http://b/37920774. |