Project

General

Profile

Backport #8467 » zlib_bug.rb

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

 
require 'zlib'

filename = "compressed_file.gz"
io = Zlib::GzipReader.new(open(filename, 'rb'))
io.rewind
io.each {} # segmentation_fault in Ruby 2.0.0
(1-1/2)