zlib_bug.rb

File with code to reproduce bug - Vicente Mundim, 06/01/2013 12:15 AM

Download (152 Bytes)

 
1
require 'zlib'
2

    
3
filename = "compressed_file.gz"
4
io = Zlib::GzipReader.new(open(filename, 'rb'))
5
io.rewind
6
io.each {} # segmentation_fault in Ruby 2.0.0