OSDN Git Service

aaudio: use weak pointer to prevent UAF
authorPhil Burk <philburk@google.com>
Tue, 1 May 2018 20:03:52 +0000 (13:03 -0700)
committerPhil Burk <philburk@google.com>
Tue, 1 May 2018 22:47:38 +0000 (15:47 -0700)
commit92c3e26338637a7ddac54988187c89fb0fe49430
tree1c1ce7bd801f5a81b7d24affeb4cd2f5393b7f0a
parent0e940b849f1839f503afb9118771b4ce1bc8e908
aaudio: use weak pointer to prevent UAF

Avoid using the mServiceEndpoint smart pointer
from multiple threads.

Bug: 74122779
Test: see bug for test instructions
Merged-In: Idaf9e32a163b25e51bde35d6f5ea10a372b5d916
Change-Id: Idaf9e32a163b25e51bde35d6f5ea10a372b5d916
services/oboeservice/AAudioServiceEndpoint.h
services/oboeservice/AAudioServiceStreamBase.cpp
services/oboeservice/AAudioServiceStreamBase.h
services/oboeservice/AAudioServiceStreamMMAP.cpp
services/oboeservice/AAudioServiceStreamShared.cpp