Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1337441 - zlib 1.2.7 writing empty files on gzopen()/gzclose()
zlib 1.2.7 writing empty files on gzopen()/gzclose()
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: zlib (Show other bugs)
7.0
All Linux
unspecified Severity high
: rc
: ---
Assigned To: Jan Chaloupka
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-19 04:39 EDT by Victor Luchits
Modified: 2016-11-03 23:39 EDT (History)
1 user (show)

See Also:
Fixed In Version: zlib-1.2.7-17.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-03 23:39:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Test program (96 bytes, text/x-csrc)
2016-05-19 04:39 EDT, Victor Luchits
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
CentOS 0010876 None None None 2016-05-19 09:49 EDT
Red Hat Product Errata RHBA-2016:2319 normal SHIPPED_LIVE zlib bug fix update 2016-11-03 09:42:48 EDT

  None (edit)
Description Victor Luchits 2016-05-19 04:39:23 EDT
Created attachment 1159301 [details]
Test program

Description of problem:
Calling zlib's gzopen() on write and gzclose() produces an empty file, which is not a valid .gz file.

Please consider backporting the following patch from zlib's official github repository as it currently affects production systems running on CentOS 7: https://github.com/madler/zlib/commit/0cf495a1ca941428c0b11e2307cad760ae44993e

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

How reproducible:
Always

Steps to Reproduce:
1. gcc zlibtest.c -lz -o zlibtest 
2. ./zlibtest
3. md5sum /tmp/gztest.gz

Actual results:
d41d8cd98f00b204e9800998ecf8427e  gztest.gz

Expected results:
7029066c27ac6f5ef18d660d5741979a  gztest.gz

Additional info:
Comment 6 errata-xmlrpc 2016-11-03 23:39:46 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2319.html

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