* file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent

infinite loop on some platform. [ruby-dev:40629]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2010-03-13 22:23:02 +00:00
parent fa37ab769f
commit 5cff0face3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 14 07:20:17 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent
infinite loop on some platform. [ruby-dev:40629]
Sun Mar 14 02:40:38 2010 Tanaka Akira <akr@fsij.org>
* tool/transcode-tblgen.rb: reject ambiguous mapping.

2
file.c
View File

@ -2998,7 +2998,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
return result;
}
#define EXPAND_PATH_BUFFER() rb_filesystem_str_new(0, MAXPATHLEN + 2)
#define EXPAND_PATH_BUFFER() rb_usascii_str_new(0, MAXPATHLEN + 2)
#define check_expand_path_args(fname, dname) \
((fname = rb_get_path(fname)), \