[ruby-core:69757] [Ruby trunk - Bug #11291] [PATCH] Check SPECIAL_CONST_P before RBASIC_CLASS to avoid SEGV

From: nagachika00@...
Date: 2015-06-27 14:13:22 UTC
List: ruby-core #69757
Issue #11291 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE

Backported into `ruby_2_2` branch at r51047.

----------------------------------------
Bug #11291: [PATCH] Check SPECIAL_CONST_P before RBASIC_CLASS to avoid SEGV
https://bugs.ruby-lang.org/issues/11291#change-53134

* Author: Kohei Suzuki
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE
----------------------------------------
https://github.com/ruby/ruby/pull/943

It fixes SEGV when a special constant is passed to `ObjectSpace.dump` .
I think it needs to be backported to 2.1 and 2.2.



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

In This Thread

Prev Next