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

Issue 1545883003: Fix 'illegal access' in Date constructor edge case (Closed)

Created:
5 years ago by Dan Ehrenberg
Modified:
4 years, 11 months ago
Reviewers:
Camillo Bruni
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

Fix 'illegal access' in Date constructor edge case In a rare edge case, a difference in checks between C++ and JavaScript lead to an 'illegal access' being thrown by the Date constructor. This patch harmonizes the checks from both sides. It's possible that slightly larger dates could be permitted, as the ECMAScript 2015 specification indicates that +287396-10-12 would be a permissible date in the note in http://tc39.github.io/ecma262/#sec-extended-years This patch does not revisit the limit, only clears up the inconsistency. BUG=v8:4640 R=cbruni LOG=Y Committed: https://crrev.com/a9c791009b747b9f518e3801d665ca8c5969b1d1 Cr-Commit-Position: refs/heads/master@{#33068}

Patch Set 1 #

Patch Set 2 : Change the JS side limit, not the C++ one #

Total comments: 4

Patch Set 3 : New strategy: Tighten up parser #

Patch Set 4 : Switch back to the original JS limit, which is now vindicated, with additional tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M src/date.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A test/mjsunit/regress/regress-4640.js View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883003/1
5 years ago (2015-12-23 06:25:10 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/11772)
5 years ago (2015-12-23 06:38:06 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883003/20001
5 years ago (2015-12-23 06:50:04 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/10321)
5 years ago (2015-12-23 07:02:29 UTC) #8
Camillo Bruni
LGTM with comments. https://codereview.chromium.org/1545883003/diff/20001/src/js/macros.py File src/js/macros.py (right): https://codereview.chromium.org/1545883003/diff/20001/src/js/macros.py#newcode193 src/js/macros.py:193: # Limit which is MAX_TIME_MS + ...
5 years ago (2015-12-23 14:46:08 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883003/60001
4 years, 12 months ago (2015-12-24 04:39:45 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 12 months ago (2015-12-24 05:21:42 UTC) #13
Dan Ehrenberg
https://codereview.chromium.org/1545883003/diff/20001/src/js/macros.py File src/js/macros.py (right): https://codereview.chromium.org/1545883003/diff/20001/src/js/macros.py#newcode193 src/js/macros.py:193: # Limit which is MAX_TIME_MS + msPerMonth. On 2015/12/23 ...
4 years, 12 months ago (2015-12-25 01:00:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883003/60001
4 years, 11 months ago (2015-12-30 23:12:32 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2015-12-30 23:54:31 UTC) #18
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 23:55:06 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a9c791009b747b9f518e3801d665ca8c5969b1d1
Cr-Commit-Position: refs/heads/master@{#33068}

Powered by Google App Engine
This is Rietveld 408576698