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

Skip to content
Commit 4b8343e4 authored by Takahiro Aizawa's avatar Takahiro Aizawa Committed by Wei Jia
Browse files

avc_utils: check delta_scale range to avoid overflow

In some cases delta_scale can be negative value while lastScale is
defined as size_t which is unsigned. Adding negative value to unsigned
causes overflow which triggers crash because of compiler flags:
LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow

Test: play specific contents
Bug: 62213565

Author: Michal Piechowski <michal.piechowski@sonymobile.com>
Change-Id: I8b3ad12a95f977db56073c078c179290d8d92368
(cherry picked from commit 0dc618869098e67a2b60971b8699bfb8b8a85dc7)
parent 8f779cf3
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