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

ruby-changes:12352

From: yugui <ko1@a...>
Date: Sun, 12 Jul 2009 23:45:30 +0900 (JST)
Subject: [ruby-changes:12352] Ruby:r24047 (ruby_1_9_1): merges r23906 from trunk into ruby_1_9_1.

yugui	2009-07-12 23:45:12 +0900 (Sun, 12 Jul 2009)

  New Revision: 24047

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

  Log:
    merges r23906 from trunk into ruby_1_9_1.
    --
    * dln.c (dln_find_1): fixed index overrun.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/dln.c
    branches/ruby_1_9_1/version.h

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 24046)
+++ ruby_1_9_1/ChangeLog	(revision 24047)
@@ -1,3 +1,7 @@
+Tue Jun 30 11:05:59 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* dln.c (dln_find_1): fixed index overrun.
+
 Mon Jun 29 18:55:55 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* dln.c (dln_find_1): fix for files with dots.  [ruby-dev:38588]
Index: ruby_1_9_1/dln.c
===================================================================
--- ruby_1_9_1/dln.c	(revision 24046)
+++ ruby_1_9_1/dln.c	(revision 24047)
@@ -1564,8 +1564,8 @@
 	}
     }
     if (ext) {
-	for (j = 0; STRCASECMP(ext, extension[j]); j++) {
-	    if (j == sizeof(extension) / sizeof(extension[0])) {
+	for (j = 0; STRCASECMP(ext, extension[j]); ) {
+	    if (++j == sizeof(extension) / sizeof(extension[0])) {
 		ext = 0;
 		break;
 	    }
Index: ruby_1_9_1/version.h
===================================================================
--- ruby_1_9_1/version.h	(revision 24046)
+++ ruby_1_9_1/version.h	(revision 24047)
@@ -1,6 +1,6 @@
 #define RUBY_VERSION "1.9.1"
 #define RUBY_RELEASE_DATE "2009-07-12"
-#define RUBY_PATCHLEVEL 210
+#define RUBY_PATCHLEVEL 211
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1

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

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