diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-31 13:56:15 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-31 13:56:15 +0000 |
| commit | ac06dd8aef11c9681f10d91e9f069183cec97f28 (patch) | |
| tree | 499ebc408f7ceb2aefdbfecf4108142da94655a9 | |
| parent | ace6b97aa66d39a16caf7edff76d9fff9befa17f (diff) | |
| download | ruby-ac06dd8aef11c9681f10d91e9f069183cec97f28.tar.gz ruby-ac06dd8aef11c9681f10d91e9f069183cec97f28.tar.xz ruby-ac06dd8aef11c9681f10d91e9f069183cec97f28.zip | |
merged r20074 from trunk into ruby_1_9_1.
* dir.c (dir_globs): need taint check. reported by steve
<oksteev at gmail.com>
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | dir.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Oct 31 12:51:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * dir.c (dir_globs): need taint check. reported by steve + <oksteev at gmail.com> + Fri Oct 31 12:42:45 2008 wanabe <s.wanabe@gmail.com> * array.c (rb_ary_decrement_share): fix to work recycling @@ -1571,7 +1571,7 @@ dir_globs(long argc, VALUE *argv, int flags) for (i = 0; i < argc; ++i) { int status; VALUE str = argv[i]; - StringValue(str); + SafeStringValue(str); status = push_glob(ary, str, flags); if (status) GLOB_JUMP_TAG(status); } |
