[ruby-cvs:50476] shugo:r43334 (trunk): * vm_insnhelper.c (vm_call_method): set ci->me to 0 when the

shugo at ruby-lang.org shugo at ruby-lang.org
Thu Oct 17 17:44:27 JST 2013


shugo	2013-10-17 17:44:26 +0900 (Thu, 17 Oct 2013)

  New Revision: 43334

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

  Log:
    * vm_insnhelper.c (vm_call_method): set ci->me to 0 when the
      original method of a refined method is undef to avoid SEGV.
    
    * vm_method.c (rb_method_entry_without_refinements): return 0 when
      the original method of a refined method is undef to avoid SEGV.
    
    * test/ruby/test_refinement.rb: related test.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_refinement.rb
    trunk/vm_insnhelper.c
    trunk/vm_method.c


More information about the ruby-cvs mailing list