From ee7549cb71ad53beeab8da8658629095824c4fc2 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 5 Aug 2016 14:19:26 +0000 Subject: * hasn.c (env_str_new): taint the string. get rid of a test failure introduced at r55811. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 3af376255e..1474460ea3 100644 --- a/hash.c +++ b/hash.c @@ -2944,6 +2944,7 @@ env_str_new(const char *ptr, long len) { #ifdef _WIN32 VALUE str = env_str_transcode(rb_utf8_str_new(ptr, len), rb_locale_encoding()); + OBJ_TAINT(str); /* rb_locale_str_new makes tainted string, but rb_utf8_str_new doesn't */ #else VALUE str = rb_locale_str_new(ptr, len); #endif -- cgit v1.2.3