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

Skip to content
Commit 2eb1482a authored by Manisha Jajoo's avatar Manisha Jajoo Committed by Ray Essick
Browse files

C2SoftMp3Dec: fix floating point exception

outTimeStamp and mProcessedSamples are calculated from
samplingRate and numChannels respectively. If either
of them is 0, it will lead to divide by zero error.
This patch adds a check on both these parameters.

Test: clusterfuzz generated poc in bug
Test: atest android.mediav2.cts.CodecDecoderTest
Test: atest VtsHalMediaC2V1_0TargetAudioDecTest
Bug: 193363472

Change-Id: Ib268d63fa28b2b4d83165c2e3deccbb2bac2d92b
parent 55a4ae70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment