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

Issue 2681643004: [builtins] Fix crash on stack overflow in CheckSpreadAndPushToStack. (Closed)

Created:
3 years, 10 months ago by petermarshall
Modified:
3 years, 10 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] Fix crash on stack overflow in CheckSpreadAndPushToStack. For x64, ia32 and x87 we would pop the return address before the stack overflow check. This meant the stack couldn't be unwound properly if it was going to overflow. This CL moves the pop of the return address to after the stack overflow check. Also adds a regression test to check that a RangeError is thrown. BUG=689016 Review-Url: https://codereview.chromium.org/2681643004 Cr-Commit-Position: refs/heads/master@{#42984} Committed: https://chromium.googlesource.com/v8/v8/+/f4739ea863108016153941c29db4bf4568cbd734

Patch Set 1 #

Patch Set 2 : Also fix for x87 port #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M src/builtins/ia32/builtins-ia32.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/builtins/x87/builtins-x87.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
A test/mjsunit/regress/regress-689016.js View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
petermarshall
PTAL =]
3 years, 10 months ago (2017-02-07 09:14:45 UTC) #5
Benedikt Meurer
LGTM!
3 years, 10 months ago (2017-02-07 09:27:13 UTC) #6
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/2681643004/20001
3 years, 10 months ago (2017-02-07 09:28:07 UTC) #8
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 09:58:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/f4739ea863108016153941c29db4bf4568c...

Powered by Google App Engine
This is Rietveld 408576698