From: nobu@... Date: 2016-05-07T13:49:03+00:00 Subject: [ruby-core:75406] [Ruby trunk Bug#10296][Closed] SEGV from unchecked Data_Get_Struct() argument Issue #10296 has been updated by Nobuyoshi Nakada. Description updated Status changed from Open to Closed Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.1: REQUIRED It doesn't happen with 2.2.5. ---------------------------------------- Bug #10296: SEGV from unchecked Data_Get_Struct() argument https://bugs.ruby-lang.org/issues/10296#change-58529 * Author: Josh Haberman * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0] * Backport: 2.1: REQUIRED ---------------------------------------- I can crash all Ruby versions I tried with this program: ```ruby require 'json' require 'zlib' module JSON module Ext module Generator class State def foo initialize_copy(Zlib::GzipWriter.new('foo.gz')) end end end end end state = JSON::Ext::Generator::State.new.foo ``` -- https://bugs.ruby-lang.org/ Unsubscribe: