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

Issue 2408853002: VideoCaptureHost: Remove |controllers_| entry before calling VideoCaptureManager::StopCaptureForCli… (Closed)

Created:
4 years, 2 months ago by mcasas
Modified:
4 years, 2 months ago
Reviewers:
xianglu
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VideoCaptureHost: Remove |controllers_| entry before calling VideoCaptureManager::StopCaptureForClient() to prevent a race The destruction sequence in case of error implies several walks around VideoCaptureManager and MediaStreamManager. I believe the changes introduced by mojo have made the UAF in the bug more evident. In any case, this CL prevents that cycle by removing the entry from |controllers_| before requesting something from the VideoCaptureManager. BUG=654199 Committed: https://crrev.com/92d59c5c7195bc11f72c6d2a965cbe8ea571e455 Cr-Commit-Position: refs/heads/master@{#424210}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M content/browser/renderer_host/media/video_capture_host.cc View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
mcasas
xianglu@ PTAL
4 years, 2 months ago (2016-10-10 18:14:27 UTC) #2
xianglu
lgtm.
4 years, 2 months ago (2016-10-10 19:45:14 UTC) #7
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/2408853002/1
4 years, 2 months ago (2016-10-10 19:48:15 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-10 19:53:43 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 19:55:54 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/92d59c5c7195bc11f72c6d2a965cbe8ea571e455
Cr-Commit-Position: refs/heads/master@{#424210}

Powered by Google App Engine
This is Rietveld 408576698