From e314b134ed907bac18a9d10f43e4d48580ab1c19 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 25 Mar 2003 03:11:27 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'object.c') diff --git a/object.c b/object.c index bef92c41c..6694e2f8f 100644 --- a/object.c +++ b/object.c @@ -357,6 +357,13 @@ rb_obj_untaint(obj) return obj; } +void +rb_obj_infect(obj1, obj2) + VALUE obj1, obj2; +{ + OBJ_INFECT(obj1, obj2); +} + VALUE rb_obj_freeze(obj) VALUE obj; -- cgit