mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
cf692592dc
commit
6a6362d633
1 changed files with 1 additions and 1 deletions
2
pack.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue