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

* parse.y (is_special_global_name): add boundary check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-10-18 10:19:45 +00:00
parent d68e5dce35
commit 7db062cdc0
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Oct 18 19:14:21 2009 Tanaka Akira <akr@fsij.org>
* parse.y (is_special_global_name): add boundary check.
Sun Oct 18 18:31:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (ruby_init_loadpath_safe): should not dup tmp string. a

View file

@ -9278,7 +9278,7 @@ is_special_global_name(const char *m, const char *e, rb_encoding *enc)
do {
if (!ISASCII(*m)) mb = 1;
++m;
} while (rb_enc_isdigit(*m, enc));
} while (m < e && rb_enc_isdigit(*m, enc));
}
return m == e ? mb + 1 : 0;
}