ruby-changes:12221
From: nobu <ko1@a...>
Date: Tue, 30 Jun 2009 11:06:30 +0900 (JST)
Subject: [ruby-changes:12221] Ruby:r23906 (trunk): * dln.c (dln_find_1): fixed index overrun.
nobu 2009-06-30 11:06:04 +0900 (Tue, 30 Jun 2009) New Revision: 23906 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23906 Log: * dln.c (dln_find_1): fixed index overrun. Modified files: trunk/ChangeLog trunk/dln.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23905) +++ ChangeLog (revision 23906) @@ -1,3 +1,7 @@ +Tue Jun 30 11:05:59 2009 Nobuyoshi Nakada <nobu@r...> + + * dln.c (dln_find_1): fixed index overrun. + Tue Jun 30 08:42:34 2009 Eric Hodel <drbrain@s...> * tool/instruby.rb: summary is required in a .gemspec. Index: dln.c =================================================================== --- dln.c (revision 23905) +++ dln.c (revision 23906) @@ -1563,8 +1563,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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/