Commit ef8d48ea authored by lrn@chromium.org's avatar lrn@chromium.org

Added check for invalid repetition in RegExp parser


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1184 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 06d96bad
......@@ -3788,6 +3788,10 @@ RegExpTree* RegExpParser::ParseDisjunction() {
break;
case '{':
if (ParseIntervalQuantifier(&min, &max)) {
if (max < min) {
ReportError(CStrVector("numbers out of order in {} quantifier.")
CHECK_FAILED);
}
break;
} else {
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment