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

Issue 1214053004: [d8] bounds-check before getting Shell::Worker internal field (Closed)

Created:
5 years, 5 months ago by caitp (gmail)
Modified:
5 years, 5 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[d8] bounds-check before getting Shell::Worker internal field Prevents fatal error in debug builds BUG=v8:4271, 506954 R=binji@chromium.org LOG=N Committed: https://crrev.com/43ce9c6f101c4224addd9a54e0c39963188dc7fa Cr-Commit-Position: refs/heads/master@{#29524} Committed: https://crrev.com/c9007d8f7ee634e99b3104233d7fcc2d64a18a52 Cr-Commit-Position: refs/heads/master@{#29737}

Patch Set 1 #

Patch Set 2 : Also bounds-check in postMessage #

Patch Set 3 : Add test #

Total comments: 8

Patch Set 4 : remove comments + IsExternal() checks #

Patch Set 5 : Only test if "Worker" is a function #

Total comments: 1

Patch Set 6 : Cosmetic test changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -7 lines) Patch
M src/d8.cc View 1 2 3 3 chunks +15 lines, -7 lines 0 comments Download
A test/mjsunit/regress/regress-4271.js View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
caitp (gmail)
Hey --- I dunno if anything valuable is really gained from the fatal error, given ...
5 years, 5 months ago (2015-07-04 10:58:16 UTC) #1
binji
lgtm, though I'm not an owner. can you add a regression test too?
5 years, 5 months ago (2015-07-06 16:52:01 UTC) #3
caitp (gmail)
On 2015/07/06 16:52:01, binji wrote: > lgtm, though I'm not an owner. > > can ...
5 years, 5 months ago (2015-07-07 13:11:13 UTC) #5
adamk
https://codereview.chromium.org/1214053004/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1214053004/diff/60001/src/d8.cc#newcode727 src/d8.cc:727: // Bounds-check to avoid fatal error in debug mode ...
5 years, 5 months ago (2015-07-07 18:48:26 UTC) #7
caitp (gmail)
https://codereview.chromium.org/1214053004/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1214053004/diff/60001/src/d8.cc#newcode727 src/d8.cc:727: // Bounds-check to avoid fatal error in debug mode ...
5 years, 5 months ago (2015-07-07 19:00:17 UTC) #8
adamk
lgtm
5 years, 5 months ago (2015-07-07 20:40:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1214053004/80001
5 years, 5 months ago (2015-07-07 20:40:47 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 5 months ago (2015-07-07 21:06:16 UTC) #13
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/43ce9c6f101c4224addd9a54e0c39963188dc7fa Cr-Commit-Position: refs/heads/master@{#29524}
5 years, 5 months ago (2015-07-07 21:06:31 UTC) #14
Michael Achenbach
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/1215333012/ by machenbach@chromium.org. ...
5 years, 5 months ago (2015-07-07 21:16:25 UTC) #15
caitp (gmail)
On 2015/07/07 21:16:25, Michael Achenbach wrote: > A revert of this CL (patchset #4 id:80001) ...
5 years, 5 months ago (2015-07-07 21:31:22 UTC) #16
binji
https://codereview.chromium.org/1214053004/diff/100001/test/mjsunit/regress/regress-4271.js File test/mjsunit/regress/regress-4271.js (right): https://codereview.chromium.org/1214053004/diff/100001/test/mjsunit/regress/regress-4271.js#newcode5 test/mjsunit/regress/regress-4271.js:5: if (typeof Worker === 'function') test(); I've just been ...
5 years, 5 months ago (2015-07-07 21:48:20 UTC) #17
binji
On 2015/07/07 at 21:48:20, binji wrote: > https://codereview.chromium.org/1214053004/diff/100001/test/mjsunit/regress/regress-4271.js > File test/mjsunit/regress/regress-4271.js (right): > > https://codereview.chromium.org/1214053004/diff/100001/test/mjsunit/regress/regress-4271.js#newcode5 ...
5 years, 5 months ago (2015-07-17 21:03:19 UTC) #18
caitp (gmail)
On 2015/07/17 21:03:19, binji wrote: > On 2015/07/07 at 21:48:20, binji wrote: > > > ...
5 years, 5 months ago (2015-07-17 21:17:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1214053004/120001
5 years, 5 months ago (2015-07-17 21:20:30 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 5 months ago (2015-07-17 21:44:33 UTC) #23
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 21:44:49 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c9007d8f7ee634e99b3104233d7fcc2d64a18a52
Cr-Commit-Position: refs/heads/master@{#29737}

Powered by Google App Engine
This is Rietveld 408576698