summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/SampleTable.cpp
diff options
context:
space:
mode:
authorJoshua J. Drake <android-open-source@qoop.org>2015-04-08 23:13:02 -0500
committerNick Kralevich <nnk@google.com>2015-04-09 17:34:16 -0700
commite3e82d54c51a3130badcd9e433fe808d965f15c2 (patch)
tree31874210a09b6de78a278ccc1eafd5702cfa7fb0 /media/libstagefright/SampleTable.cpp
parent274f64c7d6367f13c7852256b10339a3b75529f2 (diff)
downloadframeworks_av-e3e82d54c51a3130badcd9e433fe808d965f15c2.zip
frameworks_av-e3e82d54c51a3130badcd9e433fe808d965f15c2.tar.gz
frameworks_av-e3e82d54c51a3130badcd9e433fe808d965f15c2.tar.bz2
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
Diffstat (limited to 'media/libstagefright/SampleTable.cpp')
0 files changed, 0 insertions, 0 deletions