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

Issue 1620493002: Parser recursion check (Closed)

Created:
4 years, 11 months ago by hausner
Modified:
4 years, 11 months ago
Reviewers:
rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Parser recursion check Let the parser issue a compile-time error when the C stack is about to overflow, instead of crashing the VM. BUG=24476 R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/783cc8acae0bb74387cf25c4550284ded23db351

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10077 lines, -2 lines) Patch
M runtime/vm/parser.h View 3 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 7 chunks +41 lines, -2 lines 0 comments Download
A tests/language/deep_nesting1_test.dart View 1 chunk +11 lines, -0 lines 0 comments Download
A tests/language/deep_nesting2_test.dart View 1 chunk +10012 lines, -0 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
hausner
4 years, 11 months ago (2016-01-22 00:35:55 UTC) #3
rmacnak
lgtm w/c https://chromiumcodereview.appspot.com/1620493002/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/1620493002/diff/1/runtime/vm/parser.cc#newcode6143 runtime/vm/parser.cc:6143: if ((c_stack_base > 0) && (c_stack_pos < ...
4 years, 11 months ago (2016-01-22 00:45:28 UTC) #4
hausner
Committed patchset #2 (id:20001) manually as 783cc8acae0bb74387cf25c4550284ded23db351 (presubmit successful).
4 years, 11 months ago (2016-01-22 16:59:50 UTC) #6
hausner
4 years, 11 months ago (2016-01-22 18:38:14 UTC) #7
Message was sent while issue was closed.
Thank you.

https://codereview.chromium.org/1620493002/diff/1/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

https://codereview.chromium.org/1620493002/diff/1/runtime/vm/parser.cc#newcod...
runtime/vm/parser.cc:6143: if ((c_stack_base > 0) && (c_stack_pos <
c_stack_limit)) {
On 2016/01/22 00:45:28, rmacnak wrote:
> Add comment that c_stack_base > 0 handles the case where we aren't initialized
> yet.

Done.

Powered by Google App Engine
This is Rietveld 408576698