Skip to content
Commits on Apr 5, 2016
Commits on Jan 30, 2016
Commits on Nov 27, 2015
  1. Fix bug that accepted invalid zlib header when windowBits is zero.

    When windowBits is zero, the size of the sliding window comes from
    the zlib header.  The allowed values of the four-bit field are
    0..7, but when windowBits is zero, values greater than 7 are
    permitted and acted upon, resulting in large, mostly unused memory
    allocations.  This fix rejects such invalid zlib headers.
    committed Nov 26, 2015
Commits on Oct 4, 2015
  1. Use a consistent and more modern approach to not use a parameter.

    A remarkably creative and diverse set of approaches to letting the
    compiler know that opaque was being used when it wasn't is changed
    by this commit to the more standard (void)opaque.
    committed Oct 4, 2015
Commits on Sep 16, 2015
Commits on Sep 6, 2015
  1. Avoid shifts of negative values inflateMark().

    The C standard says that bit shifts of negative integers is
    undefined.  This casts to unsigned values to assure a known
    committed Sep 5, 2015
Commits on Aug 16, 2015
  1. Fix typo.

    committed Aug 15, 2015
  2. Use const for static tree descriptions in deflate.

    This is in order to permit shared memory for these structures.
    committed Aug 15, 2015
Commits on Aug 3, 2015
  1. Allow building zlib outside of the source directory.

    To build, simply run configure from the source directory by
    specifying its path.  That path will be used to find the source
    files.  The source directory will not be touched.  All new and
    modified files will be made in the current directory.  Discovered
    in the process that not all makes understand % or $<, and not all
    compilers understand -include or -I-.  This required a larger with explicit dependencies.
    committed Aug 2, 2015
  2. Do not initialize unsigned with -1 in compress.c uncompr.c.

    Sun compiler complained.  Use (unsigned)0 - 1 instead.
    committed Aug 2, 2015
Commits on Aug 2, 2015
  1. Align deflateParams() and its documentation in zlib.h.

    This updates the documentation to reflect the behavior of
    deflateParams() when it is not able to compress all of the input
    data provided so far due to insufficient output space.  It also
    assures that data provided is compressed before the parameter
    changes, even if at the beginning of the stream.
    committed Aug 2, 2015
Commits on Jul 29, 2015
  1. Clarify deflateReset() documentation.

    It previously could have been misinterpreted to mean that parameter
    changes after deflateInit2() would be reversed, which is not the
    committed Jul 28, 2015
  2. Fix inflateInit2() bug when windowBits is 16 or 32.

    A windowBits value of 0, 16, or 32 gets the window bits from the
    zlib header.  However there is no zlib header for 16, or for 32
    when the input is gzip.  This commit sets the window bits for
    inflate to 15 if a gzip stream is detected and windowBits was 16
    or 32.
    committed Jul 28, 2015
Commits on Jul 8, 2015
  1. Put license in zlib.3 man page.

    Previously there was a confusing reference to a "distribution
    committed Jul 7, 2015
Commits on Jul 6, 2015
Commits on Jul 5, 2015
  1. Avoid left shift of a negative value in flush rank calculation.

    The C standard permits an undefined result for a left shift of a
    negative value.
    committed Jul 5, 2015
Commits on Jan 27, 2015
Commits on Dec 29, 2014
Commits on Jul 2, 2014
Commits on Apr 26, 2014
Commits on Apr 24, 2014
  1. Assure that gzoffset() is correct when appending.

    An open() with O_APPEND followed by an lseek() to determine the
    position will return zero for a non-empty file, even though the
    next write will start at the end of the file.  This commit works
    around that by doing an lseek() to the end when appending.
    committed Apr 24, 2014
Commits on Aug 24, 2013
  1. Improve contrib/blast to return unused bytes. Fix the test code

    to report the count of unused bytes at the end correctly.  Add the
    ability to provide initial input to blast().
    committed Aug 24, 2013
Commits on Aug 4, 2013
Commits on May 24, 2013
  1. Spacing cleanup.

    committed May 23, 2013
Commits on May 3, 2013
Commits on Apr 29, 2013
  1. zlib 1.2.8

    committed Apr 28, 2013
Something went wrong with that request. Please try again.