Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(480)

Issue 10337043: V8 API: Add a missing NULL check into Isolate::GetCurrentContext().

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by aandrey
Modified:
11 years, 10 months ago
CC:
v8-dev_chromium.org
Base URL:
https://chromium.googlesource.com/external/v8.git@master
Visibility:
Public.

Description

V8 API: Add a missing NULL check into Isolate::GetCurrentContext(). There is a missing NULL check for: "internal_isolate->context() != NULL". Right now before calling this method one should call v8::Context::InContext() first to perform this check, otherwise we may crash. But this static method will do this check on the current isolate, which may not be the same as a given one. BUG=249655 R=yurys@chromium.org,mvstanton@chromium.org

Patch Set 1 #

Patch Set 2 : Added a test that crashes without the patch #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M src/api.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 7
aandrey
11 years, 10 months ago (2013-06-17 09:17:47 UTC) #1
aandrey
Bug report: https://code.google.com/p/chromium/issues/detail?id=249655
11 years, 10 months ago (2013-06-17 09:22:33 UTC) #2
Yury Semikhatsky
Can you please add a test for this case to test/cctest/test-api.cc ?
11 years, 10 months ago (2013-06-17 14:34:52 UTC) #3
aandrey
Added a test
11 years, 10 months ago (2013-06-17 16:41:35 UTC) #4
aandrey
ping?
11 years, 10 months ago (2013-06-19 12:11:55 UTC) #5
Yury Semikhatsky
lgtm
11 years, 10 months ago (2013-06-19 12:44:42 UTC) #6
mstarzinger
11 years, 10 months ago (2013-06-21 10:44:50 UTC) #7
LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b