platform_hardware_interfaces/audio/2.0
Mikhail Naganov 936279e1ff audiohal: Fix UAF of HAL devices in Stream objects
Stream objects used to hold a pointer to underlying HAL device
object which they didn't own. Since destruction of server side
objects is asynchronous, it was possible that a Device object
gets destroyed before Stream objects, making all the HAL device
object pointer to become stale.

Fixed by adding a strong reference to Device objects into Stream
objects.

Bug: 36702804
Change-Id: I3da3611afbb91d6fd6410ac5b8af2a2eebfa6dac
Test: ran Loopback app and HAL VTS tests
(cherry picked from commit 96d3573cda)
2017-03-30 15:52:30 +00:00
..
default audiohal: Fix UAF of HAL devices in Stream objects 2017-03-30 15:52:30 +00:00
vts/functional Audio HAL VTS: test leftover calls 2017-03-21 12:01:12 -07:00
Android.bp Update makefiles for hwtypes.h 2017-03-28 15:18:20 +00:00
Android.mk Updated makefiles 2017-02-09 17:20:45 -08:00
IDevice.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IDevicesFactory.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IPrimaryDevice.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStream.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStreamIn.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStreamOut.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStreamOutCallback.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
types.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00