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

Issue 102823002: Fix possible use-after-free in WGC3D shared context map (Closed)

Created:
7 years ago by no sievers
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, bajones
Visibility:
Public.

Description

Fix possible use-after-free in WGC3D shared context map Remove WGC3D from the map in Destroy() rather than ~WGC3DCBImpl(), because removal from the multimap needs |host_|. Otherwise it's possible that MaybeInitializeGL() and CreateContext() fail and call Destroy(), which resets |host_|, and we already inserted ourselves in the map. BUG=325071 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238546

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 2 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
no sievers
ptal
7 years ago (2013-12-03 20:35:34 UTC) #1
Ken Russell (switch to Gerrit)
LGTM Does this need to be merged back to any previous releases?
7 years ago (2013-12-03 20:49:39 UTC) #2
no sievers
On 2013/12/03 20:49:39, Ken Russell wrote: > LGTM > > Does this need to be ...
7 years ago (2013-12-03 21:14:45 UTC) #3
piman
lgtm
7 years ago (2013-12-03 22:43:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/102823002/1
7 years ago (2013-12-04 00:08:03 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-04 03:24:27 UTC) #6
Message was sent while issue was closed.
Change committed as 238546

Powered by Google App Engine
This is Rietveld 408576698