Project

General

Profile

Bug #10296

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

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

 ```ruby ```rb 
 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 
 ```

Back