diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 16:20:02 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 16:20:02 +0000 |
| commit | 9b8556ad93a1eaefc423ea75bebe26e884e0b769 (patch) | |
| tree | 8d73333c6eb4834837765687d4a9da2d1ddd6bca | |
| parent | fb3610b783474df6da44c9e9a9ec8148fa3b26c1 (diff) | |
| download | ruby-9b8556ad93a1eaefc423ea75bebe26e884e0b769.tar.gz ruby-9b8556ad93a1eaefc423ea75bebe26e884e0b769.tar.xz ruby-9b8556ad93a1eaefc423ea75bebe26e884e0b769.zip | |
* pack.c (pack_pack): propagate taint status from format string to
result string.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | pack.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * pack.c (pack_pack): propagate taint status from format string to + result string. + Fri Dec 5 00:34:10 2008 NAKAMURA Usaku <usa@ruby-lang.org> * process.c (run_exec_dup2): need to sort by reverted order when @@ -1017,6 +1017,7 @@ pack_pack(VALUE ary, VALUE fmt) if (associates) { rb_str_associate(res, associates); } + OBJ_INFECT(res, fmt); return res; } |
