[Zlib-devel] zlib version 1.2.3.8 available for testing

Arkadiusz Miskiewicz arekm at maven.pl
Mon Feb 15 02:12:34 EST 2010


On Sunday 14 of February 2010, Mark Adler wrote:

> > The problem is in pkgdir/pkg_restore.c pkg_restore_st(), file being read
> > is ftp://ftp.pld.kernel.pl/dists/th/test/x86_64/RPMS/packages.ndir.gz
> 
> There's something there I don't get.  The code is using gzgets() to read
> uncompressed data that has nulls in it (if that's the right file and the
> right function).  There's no way that could work, since neither fgets()
> nor gzgets() returns enough information to know how much data was read if
> it has nulls in the middle.  strlen() will stop at the first null.

It's kind of compressed file database, tndb_it_get_begin() seeks to proper 
hunks and read it with gzgets() later. Author of all that magic is 
unavalilable at the moment, so don't know what is going there...

> Mark

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/




More information about the Zlib-devel mailing list