Bug #10282
closed
This looks to be a simple dereference bug.
However, this is my first time looking a prepend so maybe there's a subtle
behavior change I missed.
"make check" and rubyspec passes, at least.
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r47715.
object.c (rb_class_real): do not dereference 0 VALUE
- test/ruby/test_module.rb (test_inspect_segfault):
Test case and bug report by Thomas Stratmann.
[ruby-core:65214] [Bug #10282]
normalperson@yhbt.net wrote:
File 0001-object.c-rb_class_real-do-not-dereference-0-VALUE.patch added
This looks to be a simple dereference bug.
However, this is my first time looking a prepend so maybe there's a subtle
behavior change I missed.
Committed as r47715; I don't think this breaks existing code
(but even if it did, it's better than segfaulting).
"make check" and rubyspec passes, at least.
- Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE
Backported into ruby_2_1
at r47957.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0