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

Issue 21078: RegExp parser: Fixed unchecked numeric overflow bug. (Closed)

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

Description

Fixed overflow bug in parsing of regexp repetitions.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -4 lines) Patch
M src/parser.cc View 3 chunks +18 lines, -2 lines 2 comments Download
M test/mjsunit/regexp.js View 1 chunk +34 lines, -1 line 0 comments Download
M test/mjsunit/regexp-pcre.js View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
Code review, please.
11 years, 10 months ago (2009-02-05 10:30:03 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/21078/diff/1/2 File src/parser.cc (right): http://codereview.chromium.org/21078/diff/1/2#newcode3957 Line 3957: do { Advance(); } while (IsDecimalDigit(current())); Does ...
11 years, 10 months ago (2009-02-05 11:59:36 UTC) #2
Lasse Reichstein
11 years, 10 months ago (2009-02-05 12:54:41 UTC) #3
http://codereview.chromium.org/21078/diff/1/2
File src/parser.cc (right):

http://codereview.chromium.org/21078/diff/1/2#newcode3957
Line 3957: do { Advance(); } while (IsDecimalDigit(current()));
Yes. Reading current() at end of input is allowed. It gives a special value,
kEndMarker, that definitly isn't a decimal digit.

Powered by Google App Engine
This is Rietveld 408576698