[ruby-cvs:72081] nagachika:r64981 (ruby_2_5): merge revision(s) 63067, 63068: [Backport #14658]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Oct 9 23:39:17 JST 2018


nagachika	2018-10-09 23:39:16 +0900 (Tue, 09 Oct 2018)

  New Revision: 64981

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

  Log:
    merge revision(s) 63067,63068: [Backport #14658]
    
    Fix Kernel#singleton_method with Module#Prepend
    
    * proc.c (rb_obj_singleton_method): search the method entry from
      the origin class, for fix prepended modules.  [Bug #14658]
    
    From: Vasiliy Ermolovich <younash at gmail.com>
    
    proc.c: fix segfault when no singleton class
    
    * proc.c (rb_obj_singleton_method): bail out if the receiver does
      not have the singleton class without accessing the origin class
      not to segfault.  [Bug #14658]

  Modified directories:
    branches/ruby_2_5/
  Modified files:
    branches/ruby_2_5/proc.c
    branches/ruby_2_5/test/ruby/test_method.rb
    branches/ruby_2_5/version.h


More information about the ruby-cvs mailing list