Package: zlib1g
Version: 1:1.2.3-13
Severity: normal
Tags: patch

When gzopen() is called on an empty file, gzgets() reports end of file
properly, but gzerror() returns the Z_BUF_ERROR. I think that the Debian
patch fixing problems with empty files solves the problem only partially
and that it is necessary to set the transparent mode to 1 in this case.

Patch follows:

--- zlib-1.2.3/gzio.c.mj        2008-02-11 16:53:33.000000000 +0100
+++ zlib-1.2.3/gzio.c   2008-02-11 16:54:15.000000000 +0100
@@ -306,7 +306,7 @@
         s->stream.avail_in += len;
         s->stream.next_in = s->inbuf;
         if (s->stream.avail_in < 2) {
-            s->transparent = s->stream.avail_in;
+            s->transparent = 1;
             return;
         }
     }


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.23.9
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

Versions of packages zlib1g depends on:
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries

zlib1g recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to