mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dln.c (dln_find_1): fixed index overrun.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a29a3e90b
commit
88ca298efb
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jun 30 11:05:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dln.c (dln_find_1): fixed index overrun.
|
||||
|
||||
Tue Jun 30 08:42:34 2009 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* tool/instruby.rb: summary is required in a .gemspec.
|
||||
|
|
4
dln.c
4
dln.c
|
@ -1563,8 +1563,8 @@ dln_find_1(const char *fname, const char *path, char *fbuf, size_t size,
|
|||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue