[ruby-cvs:70158] nobu:r63068 (trunk): proc.c: fix segfault when no singleton class

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Apr 3 15:57:44 JST 2018


nobu	2018-04-03 15:57:44 +0900 (Tue, 03 Apr 2018)

  New Revision: 63068

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

  Log:
    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 files:
    trunk/proc.c
    trunk/test/ruby/test_method.rb


More information about the ruby-cvs mailing list