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

Skip to content
Commit 8e2cb8f4 authored by Venkatarama Avadhani's avatar Venkatarama Avadhani
Browse files

Fix Integer overflow in estimateCuesSize

With a 200GB SD Card the Camera reported an expected max file duration
of 89158000000 us. This number will cause an overflow in estimating the
size of the file. Fix this by calculating the size on a long double and
then assigning a limited value to size.

Bug: 352217637
Test: atest StagefrightRecorderTest
Change-Id: Ibb17ece0fe6ea80abfeaa12a054db7cf40fff90e
parent 7e3b7e2e
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