Project

General

Profile

Actions

Bug #10296

closed

SEGV from unchecked Data_Get_Struct() argument

Added by jhaberman (Josh Haberman) about 10 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
Backport:
[ruby-core:65276]

Description

I can crash all Ruby versions I tried with this program:

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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0