Project

General

Profile

Actions

Backport #5928

closed

Buffer error when inflating compressed data with Zlib

Added by juanpgenovese (Juan Pablo Genovese) about 12 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
[ruby-core:42230]

Description

=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


Files

tzlib-clean.txt (9.18 KB) tzlib-clean.txt Test file for test case juanpgenovese (Juan Pablo Genovese), 01/26/2012 05:20 AM

Updated by drbrain (Eric Hodel) about 12 years ago

  • Priority changed from 5 to Normal

How was the file tzlib-clean.txt generated? Are you sure it contains deflate-compressed data?

Actions #2

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby 1.8 to Backport187
  • Status changed from Open to Closed
  • ruby -v deleted (ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux])
Actions

Also available in: Atom PDF

Like0
Like0Like0