[ruby-cvs:51241] tmm1:r44096 (trunk): hash.c: fix segv in Hash#replace

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Mon Dec 9 19:06:51 JST 2013


tmm1	2013-12-09 19:06:49 +0900 (Mon, 09 Dec 2013)

  New Revision: 44096

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

  Log:
    hash.c: fix segv in Hash#replace
    
    * hash.c (rb_hash_replace): fix segv on `{}.replace({})` introduced
      in r44060 [Bug #9230] [ruby-core:58991]
    * test/ruby/test_hash.rb: regression test for above

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/test/ruby/test_hash.rb


More information about the ruby-cvs mailing list