summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-25 03:11:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-25 03:11:27 +0000
commitd4db9e9c6091e5763a869792f63006fb0498a1b8 (patch)
treefa4764f3cea04d215a9de7316101186ec87cb279 /eval.c
parent2d505ae6f664ab8b5bf7cbff1a59c0c933e59954 (diff)
* 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 'eval.c')
-rw-r--r--eval.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index f5344815ae..ec3327f8cf 100644
--- a/eval.c
+++ b/eval.c
@@ -139,6 +139,13 @@ rb_secure(level)
}
void
+rb_secure_update(obj)
+ VALUE obj;
+{
+ if (!OBJ_TAINTED(obj)) rb_secure(4);
+}
+
+void
rb_check_safe_obj(x)
VALUE x;
{