[ruby-cvs:62509] nobu:r55345 (trunk): hash.c: ensure NUL-terminated for ENV

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jun 10 14:48:38 JST 2016


nobu	2016-06-10 14:48:38 +0900 (Fri, 10 Jun 2016)

  New Revision: 55345

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

  Log:
    hash.c: ensure NUL-terminated for ENV
    
    * hash.c (get_env_cstr): ensure NUL-terminated.
      [ruby-dev:49655] [Bug #12475]
    * string.c (rb_str_fill_terminator): return the pointer to the
      NUL-terminated content.

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/internal.h
    trunk/string.c
    trunk/test/ruby/test_env.rb


More information about the ruby-cvs mailing list