1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* re.c (rb_reg_regcomp): should succeed the taint status from the

origin. [ruby-core:33338]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-11-26 01:08:55 +00:00
parent 0244490c1e
commit 282ec842cc
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Nov 26 10:08:24 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* re.c (rb_reg_regcomp): should succeed the taint status from the
origin. [ruby-core:33338]
Wed Nov 24 15:44:11 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/extconf.rb (getaddrinfo): should initialize winsock on

1
re.c
View file

@ -1509,6 +1509,7 @@ rb_reg_regcomp(str)
case_cache = ruby_ignorecase;
kcode_cache = reg_kcode;
reg_cache = rb_reg_new(RSTRING(str)->ptr, RSTRING(str)->len, ruby_ignorecase);
OBJ_INFECT(reg_cache, str);
RB_GC_GUARD(save_str);
return reg_cache;
}