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

Issue 2075193002: Fixes use-after-free in MojoDemuxerStreamImpl. (Closed)

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

Description

Fixes use-after-free in MojoDemuxerStreamImpl. BUG=621141 Committed: https://crrev.com/61fdb768d7395fbb73daff12d9b38100df6a044f Cr-Commit-Position: refs/heads/master@{#400615}

Patch Set 1 #

Total comments: 3

Patch Set 2 : addressed comments #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : addressed comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -6 lines) Patch
M media/mojo/clients/mojo_demuxer_stream_impl.h View 1 2 chunks +8 lines, -2 lines 2 comments Download
M media/mojo/clients/mojo_renderer_impl.h View 1 2 3 4 chunks +14 lines, -0 lines 0 comments Download
M media/mojo/clients/mojo_renderer_impl.cc View 1 2 3 2 chunks +34 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
alokp
4 years, 6 months ago (2016-06-17 18:19:14 UTC) #2
xhwang
The change looks good with one comment. Do you feel it's easy to add a ...
4 years, 6 months ago (2016-06-17 18:47:00 UTC) #3
xhwang
BTW, as always, thank you so much for the bug and fix!
4 years, 6 months ago (2016-06-17 18:47:23 UTC) #4
alokp
https://chromiumcodereview.appspot.com/2075193002/diff/1/media/mojo/clients/mojo_renderer_impl.cc File media/mojo/clients/mojo_renderer_impl.cc (right): https://chromiumcodereview.appspot.com/2075193002/diff/1/media/mojo/clients/mojo_renderer_impl.cc#newcode67 media/mojo/clients/mojo_renderer_impl.cc:67: } On 2016/06/17 18:47:00, xhwang wrote: > In theory, ...
4 years, 6 months ago (2016-06-17 20:16:37 UTC) #5
alokp
+zhengxiong who has complained (to me) about multiple IPC calls currently required to setup the ...
4 years, 6 months ago (2016-06-17 20:18:45 UTC) #6
alokp
https://codereview.chromium.org/2075193002/diff/1/media/mojo/clients/mojo_renderer_impl.cc File media/mojo/clients/mojo_renderer_impl.cc (right): https://codereview.chromium.org/2075193002/diff/1/media/mojo/clients/mojo_renderer_impl.cc#newcode67 media/mojo/clients/mojo_renderer_impl.cc:67: } On 2016/06/17 20:16:37, alokp wrote: > On 2016/06/17 ...
4 years, 6 months ago (2016-06-17 20:40:28 UTC) #7
alokp
PTAL
4 years, 6 months ago (2016-06-17 21:29:23 UTC) #8
xhwang
Please add a TODO somewhere to add unittests for this ( MojoDemuxerStreamImpl and MojoRendererImpl). Otherwise ...
4 years, 6 months ago (2016-06-18 16:46:16 UTC) #9
alokp
https://chromiumcodereview.appspot.com/2075193002/diff/20001/media/mojo/clients/mojo_renderer_impl.cc File media/mojo/clients/mojo_renderer_impl.cc (right): https://chromiumcodereview.appspot.com/2075193002/diff/20001/media/mojo/clients/mojo_renderer_impl.cc#newcode64 media/mojo/clients/mojo_renderer_impl.cc:64: base::Unretained(this), DemuxerStream::AUDIO)); On 2016/06/18 16:46:16, xhwang wrote: > please ...
4 years, 6 months ago (2016-06-19 04:57:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2075193002/60001
4 years, 6 months ago (2016-06-19 04:57:57 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-19 09:07:26 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/61fdb768d7395fbb73daff12d9b38100df6a044f Cr-Commit-Position: refs/heads/master@{#400615}
4 years, 6 months ago (2016-06-19 09:10:09 UTC) #16
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2075193002/diff/60001/media/mojo/clients/mojo_demuxer_stream_impl.h File media/mojo/clients/mojo_demuxer_stream_impl.h (right): https://codereview.chromium.org/2075193002/diff/60001/media/mojo/clients/mojo_demuxer_stream_impl.h#newcode45 media/mojo/clients/mojo_demuxer_stream_impl.h:45: mojo::Binding<mojom::DemuxerStream> binding_; Some tests now leak a MojoDemxuerStreamImpl: https://cs.chromium.org/chromium/src/media/mojo/services/media_mojo_unittest.cc?rcl=0&l=108
4 years, 6 months ago (2016-06-19 14:45:22 UTC) #18
alokp
https://codereview.chromium.org/2075193002/diff/60001/media/mojo/clients/mojo_demuxer_stream_impl.h File media/mojo/clients/mojo_demuxer_stream_impl.h (right): https://codereview.chromium.org/2075193002/diff/60001/media/mojo/clients/mojo_demuxer_stream_impl.h#newcode45 media/mojo/clients/mojo_demuxer_stream_impl.h:45: mojo::Binding<mojom::DemuxerStream> binding_; On 2016/06/19 14:45:22, Ken Rockot wrote: > ...
4 years, 6 months ago (2016-06-20 16:44:48 UTC) #19
Ken Rockot(use gerrit already)
4 years, 6 months ago (2016-06-20 16:47:13 UTC) #20
Message was sent while issue was closed.
On 2016/06/20 at 16:44:48, alokp wrote:
>
https://codereview.chromium.org/2075193002/diff/60001/media/mojo/clients/mojo...
> File media/mojo/clients/mojo_demuxer_stream_impl.h (right):
> 
>
https://codereview.chromium.org/2075193002/diff/60001/media/mojo/clients/mojo...
> media/mojo/clients/mojo_demuxer_stream_impl.h:45:
mojo::Binding<mojom::DemuxerStream> binding_;
> On 2016/06/19 14:45:22, Ken Rockot wrote:
> > Some tests now leak a MojoDemxuerStreamImpl:
> >
https://cs.chromium.org/chromium/src/media/mojo/services/media_mojo_unittest....
> 
> Memory leak fix here: https://codereview.chromium.org/2087473002/
> 
> Out of curiosity, how did you discover the memory leak? Did it trigger any
memory bot failure? I do not see any failure on the bots.

I was landing the mojo::Callback CL and had to update MojoDemuxerStreamImpl
since it raced with your CL. I just noticed it after looking at the code, not
from specific failures.

Powered by Google App Engine
This is Rietveld 408576698