Red Hat Bugzilla – Bug 1337441
zlib 1.2.7 writing empty files on gzopen()/gzclose()
Last modified: 2016-11-03 23:39:46 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:
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