summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 08:04:59 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 08:04:59 (GMT)
commit6a6362d633b7ef086523dacdd16f132739ad1d75 (patch)
treeb08d090d16118eddb5b76834a9f185c9a6fcb107 /pack.c
parentcf692592dcb0dcafe460eb8bf4b21851ccea9721 (diff)
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
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 74637ad..fcf3a3a 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;