Bug#453321: zilib Bug: Incorrect gzeof() behaviour when reading from uncompressed file

2007-11-29 Thread Mark Brown
[Please respect the reply-to - you appear to have sent this mail to the BTS three times for some reason.] On Thu, Nov 29, 2007 at 10:26:33PM +0100, Gregor Maier wrote: > Please note, that my patch will only change/fix the behavior if gzeof(), > not of gzread(). My patch will set the EOF indicator

Bug#453321: zilib Bug: Incorrect gzeof() behaviour when reading from uncompressed file

2007-11-29 Thread Gregor Maier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Brown wrote: >> When reading uncompressed files with gzread() the EOF indicator is not >> always set correctly. The EOF indicator is only set, when the underlying >> fread() returned 0. This is incorrect, since any return value that is >> shorter

Bug#453321: zilib Bug: Incorrect gzeof() behaviour when reading from uncompressed file

2007-11-28 Thread Gregor Maier
Package: zlib Version: 1.2.3.3.dfsg-7 When reading uncompressed files with gzread() the EOF indicator is not always set correctly. The EOF indicator is only set, when the underlying fread() returned 0. This is incorrect, since any return value that is shorter than the nmemb argument may indicate a