[Zlib-devel] zlib version 1.2.3.8 available for testing
Mark Adler
madler at alumni.caltech.edu
Sun Feb 14 16:28:46 EST 2010
On Feb 14, 2010, at 11:45 AM, Arkadiusz Miskiewicz wrote:
> Tried using off_t in these places but the problem persists, so something else
> is going on
Ok.
> ( + offsets are quire low, 50k max).
Casting a function does not cause a conversion. For example, for a big-endian architecture, or for an architecture and compiler in which a long is returned in a different register than a long long, the wrong value will be returned.
> 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.
Mark
More information about the Zlib-devel
mailing list