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)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 25 May 2018 18:39:04 +0000 (18:39 +0000)
commit46bd7c682db5bbc048b177c52448a7999e5740ce
tree5d05b2e805c58e1f776c300f191bfa75f614d433
parent7306d8b37c00729dc41d663a4b244a00209d537b
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
(cherry picked from commit 92c3e26338637a7ddac54988187c89fb0fe49430)
services/oboeservice/AAudioServiceEndpoint.h
services/oboeservice/AAudioServiceStreamBase.cpp
services/oboeservice/AAudioServiceStreamBase.h
services/oboeservice/AAudioServiceStreamMMAP.cpp
services/oboeservice/AAudioServiceStreamShared.cpp