Project

General

Profile

Backport #2519

__method__ can return NULL (and therefore crash ruby)

Added by marcandre (Marc-Andre Lafortune) over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:27296]

Description

=begin
In Ruby 1.8.7 and latest 1.8.8:

$ cat ohoh.rb
puts method

$ ruby18dev -e "load 'ohoh.rb'"
val (null) id 140734799802560/Users/work/test/ohoh.rb:1:in to_s': NULL pointer given (ArgumentError)
from /Users/work/test/ohoh.rb:1:in
puts'
from /Users/work/test/ohoh.rb:1
from -e:1:in `load'
from -e:1

Doing method.inspect instead will crash Ruby
=end

History

#1

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r26159.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

#2

Updated by shyouhei (Shyouhei Urabe) over 9 years ago

  • Status changed from Closed to Assigned
  • Assignee set to shyouhei (Shyouhei Urabe)

=begin

=end

#3

Updated by shyouhei (Shyouhei Urabe) over 9 years ago

  • Status changed from Assigned to Closed

=begin
This issue was solved with changeset r28246.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF