From: Juan Pablo Genovese Date: 2012-01-26T05:20:47+09:00 Subject: [ruby-core:42230] [Ruby 1.8 - Bug #5928][Open] Buffer error when inflating compressed data with Zlib Issue #5928 has been reported by Juan Pablo Genovese. ---------------------------------------- Bug #5928: Buffer error when inflating compressed data with Zlib https://bugs.ruby-lang.org/issues/5928 Author: Juan Pablo Genovese Status: Open Priority: High Assignee: Category: lib Target version: ruby -v: ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux] =begin I tried to google a solution for this issue, but no luck at all. How to reproduce: require 'zlib' zs = Zlib::Inflate.new contents = File.read("tzlib-clean.txt") res = zs.inflate(contents) zs.finish if zs zs.close This code will raise a Zlib::BufError exception. I expect that this code will successfully uncompress the zlib compressed data in the file. I don't know how to provide a debugger backtrace, but I will gladly do so if someone explains that to me. =end -- http://bugs.ruby-lang.org/