Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cdf924a3 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio flinger: add check in getInputBufferSize()

Make sure that the sample rate passed to getInputBufferSize()
is not 0 to avoid divide by 0 in destinationFramesPossible()

Also check the channel mask parameter for validity.

bug: 26866012
Change-Id: Ifabbf56cadb0db104f99230cacdba30e0c6a0a3a
parent da53ce37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment