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

Issue 2443473002: ImageCapture: fix using invalidated iterator after removing entry from |photo_request_queue_| (Closed)

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

Description

ImageCapture: fix using invalidated iterator after removing entry from |photo_request_queue_| This CL avoids preincrementing a potentially invalidated iterator after it has been erase()d from |photo_request_queue_|. It caused the crash detailed in the bug. BUG=655522 TEST= see bug, I could repro in a Linux dev debug build. Committed: https://crrev.com/6a76be1ce16df264f18a66359177f91f2959fe77 Cr-Commit-Position: refs/heads/master@{#426728}

Patch Set 1 : #

Patch Set 2 : alternative implementation suggested by reillyg@ #

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

Messages

Total messages: 23 (13 generated)
mcasas
reillyg@ PTAL (micro fix).
4 years, 2 months ago (2016-10-21 01:36:56 UTC) #6
mcasas
ptal at PS2
4 years, 2 months ago (2016-10-21 01:48:57 UTC) #8
Reilly Grant (use Gerrit)
lgtm
4 years, 2 months ago (2016-10-21 02:38:09 UTC) #9
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/2443473002/40001
4 years, 2 months ago (2016-10-21 02:42:41 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/150263)
4 years, 2 months ago (2016-10-21 03:00:44 UTC) #13
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/2443473002/40001
4 years, 2 months ago (2016-10-21 03:23:17 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/149860)
4 years, 2 months ago (2016-10-21 03:42:14 UTC) #17
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/2443473002/40001
4 years, 2 months ago (2016-10-21 03:55:23 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 2 months ago (2016-10-21 04:30:40 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-10-21 13:27:28 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6a76be1ce16df264f18a66359177f91f2959fe77
Cr-Commit-Position: refs/heads/master@{#426728}

Powered by Google App Engine
This is Rietveld 408576698