[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>

Currently, ruby/spec is maintained mostly by individuals and enjoys the

13 messages 2016/12/13

[ruby-core:78862] [Ruby trunk Bug#12974] Marshal.dump dumps core.

From: usa@...
Date: 2016-12-27 10:11:53 UTC
List: ruby-core #78862
Issue #12974 has been updated by Usaku NAKAMURA.

Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED

ruby_2_2 r57211 merged revision(s) 56894.

----------------------------------------
Bug #12974: Marshal.dump dumps core.
https://bugs.ruby-lang.org/issues/12974#change-62269

* Author: Shyouhei Urabe
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0dev (2016-11-24 trunk 56892) [x86_64-darwin15]
* Backport: 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED
----------------------------------------
```ruby
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.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next