commit | 2c184d8b3df586cf3db46948c46da9362b96b605 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Wed Apr 08 23:13:02 2015 -0500 |
committer | Jon Larimer <jlarimer@google.com> | Fri Jul 31 15:18:00 2015 -0400 |
tree | 4177b7051fcab7f5a5e4c3509046efb6a30b3439 | |
parent | 9ad031163bab5066619e75de768106ee57b39dcf [diff] |
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. Bug: 20139950 Change-Id: I62e1b977f0e5ed0094094a55d300bac76b476c7b