[前][次][番号順一覧][スレッド一覧]

ruby-changes:13608

From: akr <ko1@a...>
Date: Sun, 18 Oct 2009 19:20:03 +0900 (JST)
Subject: [ruby-changes:13608] Ruby:r25391 (trunk): * parse.y (is_special_global_name): add boundary check.

akr	2009-10-18 19:19:45 +0900 (Sun, 18 Oct 2009)

  New Revision: 25391

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25391

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

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25390)
+++ ChangeLog	(revision 25391)
@@ -1,3 +1,7 @@
+Sun Oct 18 19:14:21 2009  Tanaka Akira  <akr@f...>
+
+	* parse.y (is_special_global_name): add boundary check.
+
 Sun Oct 18 18:31:58 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* ruby.c (ruby_init_loadpath_safe): should not dup tmp string.  a
Index: parse.y
===================================================================
--- parse.y	(revision 25390)
+++ parse.y	(revision 25391)
@@ -9278,7 +9278,7 @@
 	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;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]