[Zlib-devel] zlib 1.2.3.4 Winter Solstice Edition

Gilles Vollant info at winimage.com
Fri Dec 25 14:48:43 EST 2009


I integrated your fix on

http://gvollant.free.fr/minizip101g_proposal.zip

-----Message d'origine-----
De : zlib-devel-bounces at madler.net [mailto:zlib-devel-bounces at madler.net] De
la part de Mark Brown
Envoyé : vendredi 25 décembre 2009 20:02
À : zlib-devel at zlib.net
Objet : Re: [Zlib-devel] zlib 1.2.3.4 Winter Solstice Edition

On Fri, Dec 25, 2009 at 03:53:32PM +0000, Mark Brown wrote:

> I also needed to apply the following reversion patch to avoid triggering
> an infinite loop in man-db while rebuilding its caches.  Looking at the
> code I suspect that this may actually be a latent issue in man-db that's
> been exposed but I've not had time to dig through that properly.

I've now analysed this a bit more.  The problem is that z_eof can get
set as soon as feof() is true, which will happen as soon as the input is
exhausted.  However, since gzio is still buffering data (even for
transparent streams) it is possible that there may still be data
buffered in gzio even when there is no more data which can be read from
the input file.  If z_eof is set and checked for then gzread will return
0 even if there is data buffered - the check for z_eof should be updated
to check to see if there is any data buffered if it remains.

_______________________________________________
Zlib-devel mailing list
Zlib-devel at madler.net
http://mail.madler.net/mailman/listinfo/zlib-devel_madler.net





More information about the Zlib-devel mailing list