[ruby-cvs:62376] nobu:r55213 (trunk): raddrinfo.c: fix for SHARABLE_MIDDLE_SUBSTRING

nobu at ruby-lang.org nobu at ruby-lang.org
Mon May 30 16:28:55 JST 2016


nobu	2016-05-30 16:28:55 +0900 (Mon, 30 May 2016)

  New Revision: 55213

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55213

  Log:
    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

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/raddrinfo.c
    trunk/test/socket/test_addrinfo.rb


More information about the ruby-cvs mailing list