platform_hardware_interfaces/audio/2.0
Kevin Rocard b6498cbdf6 Audio HAL: Check for buffer size overflow
The audio buffer size is not provided by the client, it is computed from
the sample size and the number of sample.

No check was done as if the multiplication of these two numbers would
produce an overflow. This leaded to erroneous memory access crashing the
media server.

Test: Run on target
Bug: 36311550

Change-Id: I3436800ab6ac1b5e6a6aa4d03d6b96910eb54652
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-04-07 13:10:01 -07:00
..
default Audio HAL: Check for buffer size overflow 2017-04-07 13:10:01 -07:00
vts/functional Audio HAL: Detect openDevice failure 2017-04-07 13:10:01 -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