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

Skip to content
Commit 16b4f127 authored by Venkatarama Avadhani's avatar Venkatarama Avadhani Committed by Venkatarama Avadhani (xWF)
Browse files

Fix Integer Overflow in MPEG4Writer

When size is calculated in estimateMoovBoxSize, 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: 383383170
Change-Id: I145620bda6930fd2b86a51857b3ea6dcfdf9480a
parent 55606af0
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