From 6a6362d633b7ef086523dacdd16f132739ad1d75 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 10 Sep 2014 08:04:59 +0000 Subject: pack.c: no nil.taint * pack.c (pack_pack): nil is not taintable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.c b/pack.c index 74637adca4..fcf3a3a2a0 100644 --- a/pack.c +++ b/pack.c @@ -870,12 +870,12 @@ pack_pack(VALUE ary, VALUE fmt) } else { t = StringValuePtr(from); + rb_obj_taint(from); } if (!associates) { associates = rb_ary_new(); } rb_ary_push(associates, from); - rb_obj_taint(from); rb_str_buf_cat(res, (char*)&t, sizeof(char*)); } break; -- cgit v1.2.3