Author: [email protected]
Date: Thu Jan 29 06:14:13 2009
New Revision: 1184

Modified:
    branches/bleeding_edge/src/parser.cc

Log:
Added check for invalid repetition in RegExp parser


Modified: branches/bleeding_edge/src/parser.cc
==============================================================================
--- branches/bleeding_edge/src/parser.cc        (original)
+++ branches/bleeding_edge/src/parser.cc        Thu Jan 29 06:14:13 2009
@@ -3788,6 +3788,10 @@
        break;
      case '{':
        if (ParseIntervalQuantifier(&min, &max)) {
+        if (max < min) {
+          ReportError(CStrVector("numbers out of order in {} quantifier.")
+                      CHECK_FAILED);
+        }
          break;
        } else {
          continue;

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to