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

Issue 7277077: While initializing the pepper plugin registry in the renderer we load each plugin and attempt to ... (Closed)

Created:
9 years, 5 months ago by ananta
Modified:
9 years, 5 months ago
Reviewers:
brettw, dimichael, dimachael
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

While initializing the pepper plugin registry in the renderer we load each plugin and attempt to initialize it. If initialization fails for a plugin the code in PluginModule unloads the plugin but still attempts to invoke the shutdown function on an unloaded plugin module. Proposed fix is to initialize the entry points member with the plugin entry points only when initialization succeeds. BUG=none TEST=The renderer should not crash if initializing a pepper plugin fails. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91756

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M webkit/plugins/ppapi/plugin_module.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 4 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
9 years, 5 months ago (2011-07-02 01:24:43 UTC) #1
ananta
9 years, 5 months ago (2011-07-02 01:25:45 UTC) #2
brettw
http://codereview.chromium.org/7277077/diff/3/webkit/plugins/ppapi/plugin_module.cc File webkit/plugins/ppapi/plugin_module.cc (right): http://codereview.chromium.org/7277077/diff/3/webkit/plugins/ppapi/plugin_module.cc#newcode461 webkit/plugins/ppapi/plugin_module.cc:461: memset(&entry_points_, 0, sizeof(entry_points_)); Can we do this in the ...
9 years, 5 months ago (2011-07-06 18:27:54 UTC) #3
ananta
http://codereview.chromium.org/7277077/diff/3/webkit/plugins/ppapi/plugin_module.cc File webkit/plugins/ppapi/plugin_module.cc (right): http://codereview.chromium.org/7277077/diff/3/webkit/plugins/ppapi/plugin_module.cc#newcode461 webkit/plugins/ppapi/plugin_module.cc:461: memset(&entry_points_, 0, sizeof(entry_points_)); On 2011/07/06 18:27:54, brettw wrote: > ...
9 years, 5 months ago (2011-07-06 18:41:53 UTC) #4
brettw
9 years, 5 months ago (2011-07-06 20:06:02 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698