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

Issue 2199343002: Do an access check before compiling code via eval() (Closed)

Created:
4 years, 4 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 4 months ago
Reviewers:
Toon Verwaest
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Do an access check before compiling code via eval() Similarly to how we check whether the entered context has access to the target context when invoking the function constructor, we should check the involved contexts before invoking eval(). I forgot to add this in the initial CL that adds the check for the function constructor. Move the code to a common location, and use it for the GlobalEval builtin as well. BUG=chromium:541703 R=verwaest@chromium.org Committed: https://crrev.com/2f8d4f44257f24e19b3cc98e8ad0de50a457c4cd Cr-Commit-Position: refs/heads/master@{#38277}

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -20 lines) Patch
M src/builtins/builtins.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/builtins/builtins.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M src/builtins/builtins-function.cc View 2 chunks +1 line, -17 lines 0 comments Download
M src/builtins/builtins-global.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
jochen (gone - plz use gerrit)
4 years, 4 months ago (2016-08-02 15:11:49 UTC) #1
jochen (gone - plz use gerrit)
ptal (now with green bots)
4 years, 4 months ago (2016-08-02 15:28:49 UTC) #8
adamk
More CL description, please :)
4 years, 4 months ago (2016-08-02 16:58:48 UTC) #11
jochen (gone - plz use gerrit)
done
4 years, 4 months ago (2016-08-02 18:39:36 UTC) #15
Toon Verwaest
lgtm
4 years, 4 months ago (2016-08-02 20:46:21 UTC) #18
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/2199343002/40001
4 years, 4 months ago (2016-08-03 07:40:20 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-03 07:42:16 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 07:43:00 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2f8d4f44257f24e19b3cc98e8ad0de50a457c4cd
Cr-Commit-Position: refs/heads/master@{#38277}

Powered by Google App Engine
This is Rietveld 408576698