Project

General

Profile

Backport #8467 ยป zlib_bug.rb

File with code to reproduce bug - vicente.mundim (Vicente Mundim), 06/01/2013 12:15 AM

 
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