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

Issue 10451092: Avoid overdeep recursion in regexp where a guarded expression with a (Closed)

Created:
8 years, 6 months ago by Erik Corry
Modified:
8 years, 6 months ago
Reviewers:
ulan
CC:
v8-dev
Visibility:
Public.

Description

Avoid overdeep recursion in regexp where a guarded expression with a minimum repetition count is inside another quantifier. Bug=129926 Committed: https://code.google.com/p/v8/source/detail?r=11686

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -39 lines) Patch
M src/jsregexp.h View 10 chunks +43 lines, -22 lines 0 comments Download
M src/jsregexp.cc View 9 chunks +30 lines, -17 lines 2 comments Download
M test/mjsunit/regexp-capture-3.js View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Erik Corry
8 years, 6 months ago (2012-05-31 11:20:16 UTC) #1
ulan
LGTM. Nit in the description: "BUG=129926" in a separate line would look nicer. https://chromiumcodereview.appspot.com/10451092/diff/1/src/jsregexp.cc File ...
8 years, 6 months ago (2012-05-31 11:56:23 UTC) #2
Erik Corry
8 years, 6 months ago (2012-05-31 13:51:43 UTC) #3
https://chromiumcodereview.appspot.com/10451092/diff/1/src/jsregexp.cc
File src/jsregexp.cc (right):

https://chromiumcodereview.appspot.com/10451092/diff/1/src/jsregexp.cc#newcod...
src/jsregexp.cc:5617: ZoneList<GuardedAlternative>* alts = alternatives();
On 2012/05/31 11:56:23, ulan wrote:
> We don't check recursion_depth here, because nesting of choice nodes is
limited
> somewhere else?

Yes, it's only LoopChoiceNodes that can lead to unrestricted recursion.

Powered by Google App Engine
This is Rietveld 408576698