[ruby-cvs:51073] nobu:r43929 (trunk): enumerator.c: should not store local variable address

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Nov 30 16:25:18 JST 2013


nobu	2013-11-30 16:25:17 +0900 (Sat, 30 Nov 2013)

  New Revision: 43929

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

  Log:
    enumerator.c: should not store local variable address
    
    * enumerator.c (enumerator_with_index): should not store local variable
      address to memoise the arguments.  it is invalidated after the return.
      [ruby-core:58692] [Bug #9178]

  Modified files:
    trunk/ChangeLog
    trunk/enumerator.c
    trunk/test/ruby/test_enumerator.rb


More information about the ruby-cvs mailing list