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

Issue 113894: Added stack overflow check for RegExp analysis phase. (Closed)

Created:
11 years, 7 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added stack overflow check for RegExp analysis phase. A very long regexp graph can overflow the stack with recursive calls.

Patch Set 1 #

Patch Set 2 : Added test for stack overflow #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -6 lines) Patch
M src/jsregexp.h View 2 chunks +10 lines, -1 line 1 comment Download
M src/jsregexp.cc View 5 chunks +22 lines, -5 lines 0 comments Download
M test/mjsunit/regexp.js View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Lasse Reichstein
A quick review.
11 years, 7 months ago (2009-05-27 09:16:14 UTC) #1
Christian Plesner Hansen
11 years, 7 months ago (2009-05-27 10:04:48 UTC) #2
Lgtm

http://codereview.chromium.org/113894/diff/1001/1003
File src/jsregexp.h (right):

http://codereview.chromium.org/113894/diff/1001/1003#newcode1322
Line 1322: bool failed() { return error_message_ != NULL; }
Since this is a boolean predicate it should be 'has_failed'.

Powered by Google App Engine
This is Rietveld 408576698