summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2021-04-07 22:43:20 +0000
committerSteven Moreland <smoreland@google.com>2021-04-07 23:06:09 +0000
commitbfb0c01536863960b090f2dbc1d15f5d9eac6afd (patch)
treebbbe33c664e9d835310bf239aff924e8b6beadba /libutils/Unicode.cpp
parentfb5bdae5032b5952691305c6cd4a5597f8dc12ce (diff)
libutils: wp::fromExisting bugfix
This API was tested before, but it wasn't used until it is needed in libbinder. Previously it passed the tests because wp::operator== compares weak_ptrs which are never deleted, but it doesn't check the value of m_ptr as well. This assumes that the RefBase implementation is self-consistent. Future considerations: - add additional CHECK (perf?) - add an additional optional CHECK? - update all refbase tests to use an embellished form of this operator Bug: 184190315 Test: libutils_test, boot and kill process when libbinder is using this API Change-Id: I66c97386d769529d5efae48e06775d4b4a344025
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions