1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dir.c (dir_globs): need taint check. reported by steve

<oksteev at gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-10-31 04:40:34 +00:00
parent 5eacf68c2a
commit ec280ecbe6
2 changed files with 6 additions and 1 deletions

View file

@ -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

2
dir.c
View file

@ -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);
}