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

Issue 2050323002: media: Fix mojo DecoderBuffer type converter (Closed)

Created:
4 years, 6 months ago by xhwang
Modified:
4 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Fix mojo DecoderBuffer type converter When side_data is empty, we should not called front(), otherwise it's undefined behavior: https://cs.chromium.org/chromium/src/mojo/public/cpp/bindings/array.h?rcl=0&l=97 The crash is like this: #2 0x00007ffff442dfe5 in __gnu_debug::_Error_formatter::_M_error (this=0x7fffffffc058) at ../../../../../src/libstdc++-v3/src/c++11/debug.cc:781 #3 0x0000000000550062 in std::__debug::vector<unsigned char, std::allocator<unsigned char> >::front (this=0x362504b6f3a8) at ../../build/linux/debian_wheezy_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../in clude/c++/4.6/debug/vector:329 #4 0x000000000054d905 in mojo::Array<unsigned char>::front (this=0x362504b6f3a8) at ../../mojo/public/cpp/bindings/array.h:99 #5 0x000000000054b9b4 in mojo::TypeConverter<scoped_refptr<media::DecoderBuffer>, mojo::StructPtr<m edia::mojom::DecoderBuffer> >::Convert (input=...) at ../../media/mojo/common/media_type_converters.cc:476 I'll enable media_mojo_unittests on bots shortly so that we can catch regressions. BUG=617204 TEST=fixes a unittest Committed: https://crrev.com/03fa1fc9ad9bc265dcebb93b0e8d5a47f764b8a6 Cr-Commit-Position: refs/heads/master@{#399054}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M media/mojo/common/media_type_converters.cc View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 23 (10 generated)
xhwang
PTAL
4 years, 6 months ago (2016-06-09 17:48:27 UTC) #2
sandersd (OOO until July 31)
On 2016/06/09 17:48:27, xhwang wrote: > PTAL Can you comment in the description what the ...
4 years, 6 months ago (2016-06-09 17:51:30 UTC) #3
xhwang
On 2016/06/09 17:51:30, sandersd wrote: > On 2016/06/09 17:48:27, xhwang wrote: > > PTAL > ...
4 years, 6 months ago (2016-06-09 18:04:05 UTC) #6
sandersd (OOO until July 31)
lgtm
4 years, 6 months ago (2016-06-09 18:09:46 UTC) #7
xhwang
dcheng@chromium.org: Please OWNERS review this minor change. As promised, I'll enable this test on bots ...
4 years, 6 months ago (2016-06-09 18:11:00 UTC) #9
dcheng
Yikes. This fix LGTM; when can we switch this over to StructTraits =)
4 years, 6 months ago (2016-06-09 18:25:42 UTC) #10
xhwang
On 2016/06/09 18:25:42, dcheng wrote: > Yikes. This fix LGTM; when can we switch this ...
4 years, 6 months ago (2016-06-09 18:30:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050323002/1
4 years, 6 months ago (2016-06-09 18:30:54 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/236614)
4 years, 6 months ago (2016-06-09 22:55:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050323002/1
4 years, 6 months ago (2016-06-09 22:57:13 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-10 00:19:44 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 00:19:48 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 00:21:10 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/03fa1fc9ad9bc265dcebb93b0e8d5a47f764b8a6
Cr-Commit-Position: refs/heads/master@{#399054}

Powered by Google App Engine
This is Rietveld 408576698