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

Issue 1817953005: Use rtc::scoped_refptr for WebRtcVideoCapturer. (Closed)

Created:
4 years, 9 months ago by pbos-webrtc
Modified:
4 years, 9 months ago
Reviewers:
stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use rtc::scoped_refptr for WebRtcVideoCapturer. Un-breaks peerconnection_client which would instantly use-after-free on an allocated VCM because it wasn't building a scoped_refptr so all references to the VCM were dropped. BUG=webrtc:5229 TBR=tommi@webrtc.org TEST=Run peerconnection_client locally, verify that there's no crash. Committed: https://chromium.googlesource.com/external/webrtc/+/09c3a1e291ed5a59d9c6f54b9ea5a7c2e2acec5c

Patch Set 1 #

Patch Set 2 : remove incorrect early return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -26 lines) Patch
M webrtc/media/engine/fakewebrtcvcmfactory.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M webrtc/media/engine/fakewebrtcvideocapturemodule.h View 3 chunks +1 line, -8 lines 0 comments Download
M webrtc/media/engine/webrtcvideocapturer.h View 4 chunks +6 lines, -4 lines 0 comments Download
M webrtc/media/engine/webrtcvideocapturer.cc View 4 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
pbos-webrtc
PTAL, I'm hoping this is the last of them. :\
4 years, 9 months ago (2016-03-22 14:33:45 UTC) #1
pbos-webrtc
remove incorrect early return
4 years, 9 months ago (2016-03-22 14:37:40 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817953005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817953005/20001
4 years, 9 months ago (2016-03-22 14:39:47 UTC) #4
pbos-webrtc
stefan@ can you review this after the fact? It's fixing a crash
4 years, 9 months ago (2016-03-22 16:16:39 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/09c3a1e291ed5a59d9c6f54b9ea5a7c2e2acec5c Cr-Commit-Position: refs/heads/master@{#12088}
4 years, 9 months ago (2016-03-22 16:17:52 UTC) #11
pbos-webrtc
Committed patchset #2 (id:20001) manually as 09c3a1e291ed5a59d9c6f54b9ea5a7c2e2acec5c (presubmit successful).
4 years, 9 months ago (2016-03-22 16:17:53 UTC) #12
kjellander_webrtc
On 2016/03/22 16:17:53, pbos-webrtc wrote: > Committed patchset #2 (id:20001) manually as > 09c3a1e291ed5a59d9c6f54b9ea5a7c2e2acec5c (presubmit ...
4 years, 9 months ago (2016-03-22 16:59:29 UTC) #13
pbos-webrtc
4 years, 9 months ago (2016-03-22 17:13:22 UTC) #14
Message was sent while issue was closed.
On 2016/03/22 16:59:29, kjellander (webrtc) wrote:
> On 2016/03/22 16:17:53, pbos-webrtc wrote:
> > Committed patchset #2 (id:20001) manually as
> > 09c3a1e291ed5a59d9c6f54b9ea5a7c2e2acec5c (presubmit successful).
> 
> Would it be possible to add a unit test that exercises the code path in
> peerconnection_client that crashed, so we can prevent this from happening
again?

Not trivially as far as I can tell (short of running peerconnection_client). It
should be a one-off thing because I don't see anyone refactoring this back to
not use scoped_refptrs.

Powered by Google App Engine
This is Rietveld 408576698