Chromium Code Reviews
DescriptionMSE: Fix moar mp4 parsing security bugs.
Boxes with various sub-entries read the entry count from the user
provided mp4. Do not trust the counts. Check for size_t and vector
resize() overflow to avoid OOB writes in vector allocation.
Additionally, verify we have enough bytes to continue parsing before
allocating vectors to store parsed data.
Also evaluated other box_definition.cc vector resize() calls. Added
one additional check for SampleEncryptionEntry (probably overkill).
BUG=679645, 679646, 679647, 679653
TEST=Verified POCs no longer crash. New unit tests.
Review-Url: https://codereview.chromium.org/2643123002
Cr-Commit-Position: refs/heads/master@{#444935}
Committed: https://chromium.googlesource.com/chromium/src/+/d5e2e152b550e4fbfff9b08e7bdf7c9d4c937438
Patch Set 1 #
Total comments: 11
Patch Set 2 : Feedback #
Messages
Total messages: 12 (7 generated)
|
||||||||||||||||||||||||||||