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

Skip to content
Commit 7fb342b3 authored by Venkatarama Avadhani's avatar Venkatarama Avadhani
Browse files

Fix Integer Overflow in WebmWriter

When size is calculated in estimatedCueSize, the max file size is first
multiplied by 6 and then divided by 1000. The multiplication operation
could result in an Integer Overflow. This change reorders the
multiplication and division to avoid the overflow.

Test: atest StagefrightRecorderTest
Bug: 360998270
Change-Id: Ia2e65cf2ed3cd02aa1f9714c4eef99fbb9b2394e
parent 7c4e6991
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