diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-30 07:28:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-30 07:28:55 +0000 |
commit | 94a91b1d60d048dcf75039d6d64ad9ee7e5929f4 (patch) | |
tree | 68b97807dc9950dce7af0642722b1378559ba8ec /ext/openssl/ossl_ocsp.h | |
parent | 79a85b18cc6ad27f1a70a703270680dc30a1263e (diff) | |
download | ruby-94a91b1d60d048dcf75039d6d64ad9ee7e5929f4.tar.gz |
raddrinfo.c: fix for SHARABLE_MIDDLE_SUBSTRING
* ext/socket/raddrinfo.c (host_str, port_str): use RSTRING_LEN
instead of strlen, since RSTRING_PTR StringValueCStr may not be
NUL-terminated when SHARABLE_MIDDLE_SUBSTRING=1. reported by
@tmtms, http://twitter.com/tmtms/status/736910516229005312
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_ocsp.h')
0 files changed, 0 insertions, 0 deletions