summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-18 16:27:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-18 16:27:53 +0000
commit28a93212845c6bf8d8d48bf841a42d0d335baf45 (patch)
tree37d29b62bbe04d5ac69411dfb844e5d0ab83a44c /regex.c
parent1a644ec72db5f62a04fe30d30ad0b2d27a364445 (diff)
* regex.c (re_compile_pattern): numeric literal inside character class
disabled succeeding backtrack. fixed: [ruby-list:41328] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regex.c b/regex.c
index a018e07..7717835 100644
--- a/regex.c
+++ b/regex.c
@@ -1725,6 +1725,7 @@ re_compile_pattern(pattern, size, bufp)
memmove(&b[(unsigned char)b[-1]], &b[(1 << BYTEWIDTH) / BYTEWIDTH],
2 + EXTRACT_UNSIGNED(&b[(1 << BYTEWIDTH) / BYTEWIDTH])*8);
b += b[-1] + 2 + EXTRACT_UNSIGNED(&b[(unsigned char)b[-1]])*8;
+ had_num_literal = 0;
break;
case '(':