gzipped file cannot be read with zlib

Bug #1267930 reported by Barry Haddow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zlib (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi

I gzip a file (dropbox link below), but when trying to read it with zlib I get:

zlib.error: Error -3 while decompressing: invalid distances set

This seems to be a zlib problem -- using the latest zlib release (1.2.8) is fine.

For reading in the file, I am using C++ to call the zlib api, but I can reproduce the problem in a simple python program:

import gzip

fd = gzip.GzipFile("extract.2.gz", "rb")
count = 1
for line in fd:
  count +=1
print count

Ubuntu 12.04
zlib1g:
  Installed: 1:1.2.3.4.dfsg-3ubuntu4
  Candidate: 1:1.2.3.4.dfsg-3ubuntu4
  Version table:
 *** 1:1.2.3.4.dfsg-3ubuntu4 0

Problem file:
https://www.dropbox.com/s/sjkdtp5bh698arb/extract.2

cheers - Barry

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.