[ruby-core:60761] [Backport200 - Backport #9248] [Closed] Struct methods, segmentation fault

From: nagachika00@...
Date: 2014-02-15 14:53:13 UTC
List: ruby-core #60761
Issue #9248 has been updated by Tomoyuki Chikanaga.

Status changed from Assigned to Closed

Applied in changeset r44975.

----------
merge revision(s) r44926: [Backport #8756] [Backport #9248]

	* parse.y (IDSET_ATTRSET_FOR_INTERN): fix off-by-one bug.

	* parse.y (rb_enc_symname_type): junk ID succeeded by '=' is also
	  attrset ID.  [ruby-core:60668] [Bug #8756]

----------------------------------------
Backport #9248: Struct methods, segmentation fault
https://bugs.ruby-lang.org/issues/9248#change-45178

* Author: H H
* Status: Closed
* Priority: Normal
* Assignee: Tomoyuki Chikanaga
* Category: 
* Target version: 
* ruby -v: 2.0.0p353
----------------------------------------
=begin
The following snippet causes segmentation fault:

(({p Struct.new(:method_with_questionmark?).new.methods}))

This happens when accessor method name contains question mark.
=end




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

In This Thread

Prev Next