1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* regcomp.c (optimize_node_left): include equal on the condition of for-loop.

This bug also affects original Oniguruma. [ruby-core:27247]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-12-21 09:13:28 +00:00
parent de341005c8
commit ebc6950631
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Dec 21 17:51:44 2009 NARUSE, Yui <naruse@ruby-lang.org>
* regcomp.c (optimize_node_left): include equal on the condition of for-loop.
This bug also affects original Oniguruma. [ruby-core:27247]
Mon Dec 21 10:03:33 2009 NARUSE, Yui <naruse@ruby-lang.org> Mon Dec 21 10:03:33 2009 NARUSE, Yui <naruse@ruby-lang.org>
* regcomp.c (print_enc_string): follow enclen's change. * regcomp.c (print_enc_string): follow enclen's change.

View file

@ -4792,7 +4792,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
copy_node_opt_info(opt, &nopt); copy_node_opt_info(opt, &nopt);
if (nopt.exb.len > 0) { if (nopt.exb.len > 0) {
if (nopt.exb.reach_end) { if (nopt.exb.reach_end) {
for (i = 2; i < qn->lower && for (i = 2; i <= qn->lower &&
! is_full_opt_exact_info(&opt->exb); i++) { ! is_full_opt_exact_info(&opt->exb); i++) {
concat_opt_exact_info(&opt->exb, &nopt.exb, env->enc); concat_opt_exact_info(&opt->exb, &nopt.exb, env->enc);
} }