diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | regex.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Oct 19 01:27:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * regex.c (re_compile_pattern): numeric literal inside character class + disabled succeeding backtrack. fixed: [ruby-list:41328] + Mon Oct 17 21:18:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (parser_heap): byacc never free parser stack. @@ -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 '(': |