* 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
This commit is contained in:
parent
cc494bcb20
commit
ca8405298f
@ -1,3 +1,8 @@
|
|||||||
|
Fri Nov 26 09:48:45 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* re.c (rb_reg_initialize_str): should succeed the taint status from
|
||||||
|
the origin. [ruby-core:33338]
|
||||||
|
|
||||||
Fri Nov 26 09:32:37 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Nov 26 09:32:37 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* vm_dump.c (dump_thread): seems to be necessary the 3rd argument of
|
* vm_dump.c (dump_thread): seems to be necessary the 3rd argument of
|
||||||
|
1
re.c
1
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,
|
ret = rb_reg_initialize(obj, RSTRING_PTR(str), RSTRING_LEN(str), enc,
|
||||||
options, err, sourcefile, sourceline);
|
options, err, sourcefile, sourceline);
|
||||||
|
OBJ_INFECT(obj, str);
|
||||||
RB_GC_GUARD(str);
|
RB_GC_GUARD(str);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user