Project

General

Profile

Actions

Bug #12974

closed

Marshal.dump dumps core.

Added by shyouhei (Shyouhei Urabe) over 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0dev (2016-11-24 trunk 56892) [x86_64-darwin15]
[ruby-core:78289]

Description

Hash.include Module.new {
  def marshal_dump
    dup
  end

  def marshal_load this
    initialize_copy this
  end
}

p Marshal.load(Marshal.dump(foo:"bar"))

This script dumps core.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0