commit | a6f610f400cd5aa443fa07f4109b7f8c34b13cc7 | [log] [tgz] |
---|---|---|
author | Manisha Jajoo <manisha.jajoo@ittiam.com> | Wed Jul 21 17:51:04 2021 +0530 |
committer | Manisha Jajoo <manisha.jajoo@ittiam.com> | Wed Jul 28 04:19:31 2021 +0000 |
tree | d0a868e2a5eb2cae03d5839cdfd6f5d0b8aceb22 | |
parent | 0cbbad647e3a148ea6fe8b0cfac8359ba6ed9815 [diff] |
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