[ruby-cvs:51948] nobu:r44803 (trunk): string.c: enable capacity when setting capa

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Feb 4 12:55:33 JST 2014


nobu	2014-02-04 12:55:32 +0900 (Tue, 04 Feb 2014)

  New Revision: 44803

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44803

  Log:
    string.c: enable capacity when setting capa
    
    * string.c (rb_str_modify_expand): enable capacity and disable
      assocation with packed objects when setting capa, so that
      pack("p") string fails to unpack properly after modified.

  Modified files:
    trunk/ChangeLog
    trunk/string.c
    trunk/test/ruby/test_pack.rb


More information about the ruby-cvs mailing list