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

Issue 2546853002: [extensions] added checks that function is not empty (Closed)

Created:
4 years ago by kozy
Modified:
4 years ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[extensions] added checks that function is not empty ModuleSystem::GetModuleFunction function can return empty v8::Local<v8::Function> if condition in first if inside of this function is false. Then invocation of any methods on this local object will produce a crash, e.g. crbug.com/657561. BUG=657561 R=rdevlin.cronin@chromium.org Committed: https://crrev.com/dedd489499fb5b7b47fdd29fef13ffaee2f42dcd Cr-Commit-Position: refs/heads/master@{#435750}

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M extensions/renderer/module_system.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
kozy
Devlin, please take a look. It's speculative fix of crbug.com/657561 crash.
4 years ago (2016-12-01 21:48:54 UTC) #1
Devlin
lgtm https://codereview.chromium.org/2546853002/diff/1/extensions/renderer/module_system.cc File extensions/renderer/module_system.cc (right): https://codereview.chromium.org/2546853002/diff/1/extensions/renderer/module_system.cc#newcode312 extensions/renderer/module_system.cc:312: if (function.IsEmpty()) { This *shouldn't* ever happen, but ...
4 years ago (2016-12-01 22:09:47 UTC) #3
kozy
thanks. https://codereview.chromium.org/2546853002/diff/1/extensions/renderer/module_system.cc File extensions/renderer/module_system.cc (right): https://codereview.chromium.org/2546853002/diff/1/extensions/renderer/module_system.cc#newcode312 extensions/renderer/module_system.cc:312: if (function.IsEmpty()) { On 2016/12/01 22:09:47, Devlin wrote: ...
4 years ago (2016-12-01 22:19:25 UTC) #4
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/2546853002/20001
4 years ago (2016-12-01 22:20:07 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-01 23:08:20 UTC) #10
commit-bot: I haz the power
4 years ago (2016-12-01 23:10:09 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dedd489499fb5b7b47fdd29fef13ffaee2f42dcd
Cr-Commit-Position: refs/heads/master@{#435750}

Powered by Google App Engine
This is Rietveld 408576698