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

Skip to content
Commit 111df176 authored by Joshua J. Drake's avatar Joshua J. Drake Committed by Gerrit Code Review
Browse files

Fix multiple division-by-zero conditions in MPEG4 parsing

Several situations arise processing MP4 atoms that lead to undefined behavior
when dividing by zero. Typically this results in a crash (denial of service
condition).

NOTE: In most cases we simply avoid the division, leaving kKeyDuration unset.
It may be more desirable to bail out, as we do in the parseSegmentIndex case.

CYNGNOS-721

Bug: 20139950
Change-Id: I62e1b977f0e5ed0094094a55d300bac76b476c7b
(cherry picked from commit bb5a4851)
parent f7279630
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