diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-25 03:11:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-25 03:11:27 +0000 |
commit | d4db9e9c6091e5763a869792f63006fb0498a1b8 (patch) | |
tree | fa4764f3cea04d215a9de7316101186ec87cb279 /dir.c | |
parent | 2d505ae6f664ab8b5bf7cbff1a59c0c933e59954 (diff) | |
download | ruby-d4db9e9c6091e5763a869792f63006fb0498a1b8.tar.gz |
* io.c (rb_io_initialize): should check rb_secure(4).
* dir.c (dir_s_getwd): should check rb_secure(4).
* object.c (rb_obj_infect): function version of OBJ_INFECT().
* eval.c (rb_secure_update): new function to check object update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -493,8 +493,12 @@ static VALUE dir_s_getwd(dir) VALUE dir; { - char *path = my_getcwd(); - VALUE cwd = rb_tainted_str_new2(path); + char *path; + VALUE cwd; + + rb_secure(4); + path = my_getcwd(); + cwd = rb_tainted_str_new2(path); free(path); return cwd; |