Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 10823139: Set error on unrecognized top-level BMFF boxes. (Closed)

Created:
8 years, 4 months ago by strobe_
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Set error on unrecognized top-level BMFF boxes. A common error when using BMFF with Media Source is to begin appending at an incorrect offset, such that the parser sees an extremely large value for the box size and consequently waits forever for input without failing. This change adds a whitelist of permitted top-level boxes, which allows these situations to be detected as soon as the header is read. BUG= TEST=BoxReaderTest.WrongFourCCTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149735

Patch Set 1 #

Patch Set 2 : Remove FourCCs used only for testing #

Total comments: 10

Patch Set 3 : Review comments #

Patch Set 4 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -53 lines) Patch
M media/mp4/box_reader.h View 1 chunk +5 lines, -0 lines 0 comments Download
M media/mp4/box_reader.cc View 1 2 3 chunks +43 lines, -4 lines 0 comments Download
M media/mp4/box_reader_unittest.cc View 1 2 3 6 chunks +32 lines, -43 lines 0 comments Download
M media/mp4/fourccs.h View 1 4 chunks +5 lines, -5 lines 0 comments Download
M media/mp4/mp4_stream_parser.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
strobe_
8 years, 4 months ago (2012-08-02 07:20:12 UTC) #1
acolwell GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10823139/diff/2002/media/mp4/box_reader.cc File media/mp4/box_reader.cc (right): https://chromiumcodereview.appspot.com/10823139/diff/2002/media/mp4/box_reader.cc#newcode109 media/mp4/box_reader.cc:109: << std::hex << reader->type(); Any reason not to use ...
8 years, 4 months ago (2012-08-02 20:38:18 UTC) #2
strobe_
https://chromiumcodereview.appspot.com/10823139/diff/2002/media/mp4/box_reader.cc File media/mp4/box_reader.cc (right): https://chromiumcodereview.appspot.com/10823139/diff/2002/media/mp4/box_reader.cc#newcode109 media/mp4/box_reader.cc:109: << std::hex << reader->type(); On 2012/08/02 20:38:18, acolwell wrote: ...
8 years, 4 months ago (2012-08-02 21:27:49 UTC) #3
acolwell GONE FROM CHROMIUM
LGTM https://chromiumcodereview.appspot.com/10823139/diff/2002/media/mp4/box_reader.cc File media/mp4/box_reader.cc (right): https://chromiumcodereview.appspot.com/10823139/diff/2002/media/mp4/box_reader.cc#newcode109 media/mp4/box_reader.cc:109: << std::hex << reader->type(); On 2012/08/02 21:27:50, strobe ...
8 years, 4 months ago (2012-08-02 21:40:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/strobe@google.com/10823139/3006
8 years, 4 months ago (2012-08-02 21:47:02 UTC) #5
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 23:15:19 UTC) #6
Change committed as 149735

Powered by Google App Engine
This is Rietveld 408576698