Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 14, 2013
Commits on Mar 25, 2013
  1. zlib

Commits on Mar 24, 2013
  1. Add casts and consts to ease user conversion to C++.

    You would still need to run zlib2ansi on all of the *.c files.
Commits on Mar 23, 2013
  1. Add gzvprintf() as an undocumented function in zlib.

    The function is only available if stdarg.h is available.
Commits on Oct 2, 2012
  1. Fix bug in gzclose() when gzwrite() runs out of memory.

    If the deflateInit2() called for the first gzwrite() failed with a
    Z_MEM_ERROR, then a subsequent gzclose() would try to free an
    already freed pointer.  This fixes that.
Commits on Sep 30, 2012
  1. Fix bug where gzopen(), gzclose() would write an empty file.

    A gzopen() to write (mode "w") followed immediately by a gzclose()
    would output an empty zero-length file.  What it should do is write
    an empty gzip file, with the gzip header, empty deflate content,
    and gzip trailer totalling 20 bytes.  This fixes it to do that.
Commits on Aug 24, 2012
  1. Fix unintialized value bug in gzputc() introduced by const patches.

    Avoid the use of an uninitialized value when the write buffers have
    not been initialized.  A recent change to avoid the use of strm->
    next_in in order to resolve some const conflicts added the use of
    state->in in its place.  This patch avoids the use of state->in
    when it is not initialized.  Nothing bad would actually happen,
    since two variables set to the same unintialized value are
    subtracted.  However valgrind was rightly complaining.  So this
    fixes that.
Commits on Aug 13, 2012
  1. Clean up the usage of z_const and respect const usage within zlib.

    This patch allows zlib to compile cleanly with the -Wcast-qual gcc
    warning enabled, but only if ZLIB_CONST is defined, which adds
    const to next_in and msg in z_stream and in the in_func prototype.
    A --const option is added to ./configure which adds -DZLIB_CONST
    to the compile flags, and adds -Wcast-qual to the compile flags
    when ZLIBGCCWARN is set in the environment.
Commits on Mar 3, 2012
Commits on Feb 2, 2012
  1. Put gzflags() functionality back in zutil.c.

    gzflags() was put in gzwrite.c in order to be compiled exactly the
    same as gzprintf(), so that it was guaranteed to return the correct
    information.  However that causes a static linkage to zlib to bring
    in many routines that are often not used.  All that is required to
    duplicate the compilation environment of gzprintf() is to include
    gzguts.h.  So that is now done in zutil.c to assure that the correct
    flags are returned.
Commits on Jan 29, 2012
  1. zlib 1.2.6

  2. Have gzputc return the character written instead of the argument.

    When successful, gzputc would return the second argument.  If the
    second argument were -1, gzputc would return -1 instead of the
    character written, which was 255.  However the -1 would not be
    distinguishable from an error.  Now gzputc returns 255 in that
Commits on Dec 14, 2011
  1. Avoid use of Z_BUF_ERROR in gz* functions except for premature EOF.

    Z_BUF_ERROR was also being used for an unsuccessful gzungetc and for buffer
    lengths that didn't fit in an int.  Those uses were changed to Z_DATA_ERROR
    in order to assure that Z_BUF_ERROR occurs only when a premature end of
    input occurs, indicating that gzclearerr() can be used.
Commits on Dec 11, 2011
  1. Fix gzwrite.c to accommodate reduced memory zlib compilation.

    gzwrite.c had hard-coded parameters to deflateInit2() which could
    contradict compile-time options for the use of less memory and fewer
    code bits.  This patch suggested by Karsten Saunte fixes that.
Commits on Oct 2, 2011
  1. Merge vestigial vsnprintf determination from zutil.h to gzguts.h.

    This also moves some of the same from zconf.h to gzguts.h. A new
    function, gzflags(), was created to pass the compilation flags
    related to vsnprintf usage back to zlibCompileFlags() in zutil.c.
    In the process, various compiler configuration files were updated
    to include gzflags(), as well as the new gzgetc_() function added
    when the gzgetc() macro was introduced in a previous patch.
Commits on Oct 1, 2011
Commits on Sep 27, 2011
Commits on Sep 11, 2011
  1. zlib

Commits on Sep 10, 2011
  1. zlib 1.2.4-pre2

  2. zlib 1.2.4-pre1

  3. zlib

  4. zlib

  5. zlib

  6. zlib

  7. zlib

Something went wrong with that request. Please try again.