commit | 67d550888a021633cc33cb284bb0658b008887c6 | [log] [tgz] |
---|---|---|
author | Kevin Rocard <krocard@google.com> | Fri Mar 31 19:34:04 2017 -0700 |
committer | Kevin Rocard <krocard@google.com> | Fri Apr 07 13:10:01 2017 -0700 |
tree | 12abf0f2b729f3098d4e4b4e8cf42315a840b893 | |
parent | fba442a60d199441d06bf03375cb7904768403da [diff] |
Audio HAL: Detect buffer memory allocation failure If the requested buffer was too big, memory allocation would fail, resulting if a audio hal crash (uncatch exception thrown by new). Properly hadle the failure by retuning INVALID_PARAMETERS in such case. Bug: 36311550 Test: Run test on target Change-Id: Ib4170eb6a9f88f9352d0912083b43d600771bb8e Signed-off-by: Kevin Rocard <krocard@google.com>