[Bug 1267930] [NEW] gzipped file cannot be read with zlib

Barry Haddow barry.haddow at gmail.com
Fri Jan 10 16:40:30 UTC 2014


Public bug reported:

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

** Affects: zlib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zlib in Ubuntu.
https://bugs.launchpad.net/bugs/1267930

Title:
  gzipped file cannot be read with zlib

Status in “zlib” package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1267930/+subscriptions



More information about the foundations-bugs mailing list