Bug 106424 - gzeof not set when reading compressed file
gzeof not set when reading compressed file
Product: Red Hat Raw Hide
Classification: Retired
Component: zlib (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-10-06 19:56 EDT by John Ellson
Modified: 2007-04-18 12:58 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-10-08 12:49:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
tar containing ztest/Makefile and ztest/ztest.c (639 bytes, application/octet-stream)
2003-10-06 19:58 EDT, John Ellson
no flags Details

  None (edit)
Description John Ellson 2003-10-06 19:56:49 EDT
Description of problem:
gzeof is not set when reading from a compressed file,
instead gzread is returning 0

This happens with Redhats zlib- but not with the original zlib-1.1.4

Version-Release number of selected component (if applicable):

How reproducible:
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
Actual results:
test1 uses zlib-1.1.4 and terminates successfully
test2 uses zlib- and enters an infinite loop.

Expected results:
gzeof should be set at eof on compressed file input.

Additional info:
Comment 1 John Ellson 2003-10-06 19:58:04 EDT
Created attachment 94968 [details]
tar containing ztest/Makefile and ztest/ztest.c
Comment 2 Jeff Johnson 2003-10-08 09:22:26 EDT
Nice bug report, thanks for the reproducer. Fixing now ...
Comment 3 Jeff Johnson 2003-10-08 12:49:07 EDT
Fixed in zlib- Note that the fix might change in zlib-1.2.1.

Note You need to log in before you can comment on or make changes to this bug.