summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-26 00:50:42 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-26 00:50:42 +0000
commitca8405298f87a7ab857d91d646c48bbad2cecb1f (patch)
treec6a8a5f2d57a3243473175ad27878a45d6a78d5a /re.c
parentcc494bcb2080a3071867fbbfd30e0f8fac9fef7f (diff)
* re.c (rb_reg_initialize_str): should succeed the taint status from
the origin. [ruby-core:33338] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/re.c b/re.c
index 82507cfeff..41463eb199 100644
--- a/re.c
+++ b/re.c
@@ -2443,6 +2443,7 @@ rb_reg_initialize_str(VALUE obj, VALUE str, int options, onig_errmsg_buffer err,
}
ret = rb_reg_initialize(obj, RSTRING_PTR(str), RSTRING_LEN(str), enc,
options, err, sourcefile, sourceline);
+ OBJ_INFECT(obj, str);
RB_GC_GUARD(str);
return ret;
}