Red Hat Bugzilla – Bug 106424
gzeof not set when reading compressed file
Last modified: 2007-04-18 12:58:11 EDT
Description of problem:
gzeof is not set when reading from a compressed file,
instead gzread is returning 0
This happens with Redhats zlib-18.104.22.168-1 but not with the original zlib-1.1.4
Version-Release number of selected component (if applicable):
100% see attached test
Steps to Reproduce:
1. build and install zlib-1.1.4.tar.gz from http://www.gzip.org/zlib/ into
2. unpack attached "ztest.tgz" test case
3. cd ztest; make test1, make test2
test1 uses zlib-1.1.4 and terminates successfully
test2 uses zlib-22.214.171.124 and enters an infinite loop.
gzeof should be set at eof on compressed file input.
Created attachment 94968 [details]
tar containing ztest/Makefile and ztest/ztest.c
Nice bug report, thanks for the reproducer. Fixing now ...
Fixed in zlib-126.96.36.199-2. Note that the fix might change in zlib-1.2.1.