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

Issue 2648433002: MSE: Fix Mp4 SAIO parsing overflow (Closed)

Created:
3 years, 11 months ago by chcunningham
Modified:
3 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MSE: Fix Mp4 SAIO parsing overflow SampleAuxiliaryInformationOffset::Parse count can take any value between 0x0 and 0xffffffff. We must check for size_t overflow when multiplying count by "bytes_per_offset". We should also avoid attempting to resize vectors beyond their max_size() (potential OOB depending on stl library impl). BUG=679641 TEST=unit test, manual verification of POC. Review-Url: https://codereview.chromium.org/2648433002 Cr-Commit-Position: refs/heads/master@{#444584} Committed: https://chromium.googlesource.com/chromium/src/+/5041e28550903b40c925d66f6bb5bb6a6baed15b

Patch Set 1 #

Patch Set 2 : Rebase onto trun fix #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -4 lines) Patch
M media/formats/mp4/box_definitions.cc View 1 2 3 2 chunks +13 lines, -4 lines 0 comments Download
M media/formats/mp4/box_reader_unittest.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
chcunningham
Hey Dan, here's review 2/6 for the OOB bugs filed on box_defintions.cc. Dale took 1/6 ...
3 years, 11 months ago (2017-01-18 22:43:33 UTC) #4
sandersd (OOO until July 31)
lgtm % comment nit. https://codereview.chromium.org/2648433002/diff/20001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://codereview.chromium.org/2648433002/diff/20001/media/formats/mp4/box_definitions.cc#newcode131 media/formats/mp4/box_definitions.cc:131: // to avoid multiplication overflow. ...
3 years, 11 months ago (2017-01-18 23:09:01 UTC) #5
chcunningham
Thanks! https://codereview.chromium.org/2648433002/diff/20001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://codereview.chromium.org/2648433002/diff/20001/media/formats/mp4/box_definitions.cc#newcode131 media/formats/mp4/box_definitions.cc:131: // to avoid multiplication overflow. On 2017/01/18 23:09:01, ...
3 years, 11 months ago (2017-01-18 23:43:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2648433002/60001
3 years, 11 months ago (2017-01-18 23:45:10 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 01:20:07 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5041e28550903b40c925d66f6bb5...

Powered by Google App Engine
This is Rietveld 408576698