]> git.lizzy.rs Git - zlib.git/log
zlib.git
7 years agoFix compile option for when z_size_t needs to be a long long.
Mark Adler [Mon, 5 Dec 2016 00:50:49 +0000 (16:50 -0800)]
Fix compile option for when z_size_t needs to be a long long.

7 years agoCreate z_size_t and z_ssize_t types.
Mark Adler [Sat, 3 Dec 2016 18:27:14 +0000 (10:27 -0800)]
Create z_size_t and z_ssize_t types.

Normally these are set to size_t and ssize_t. But if they do not
exist, then they are set to the smallest integer type that can
contain a pointer. size_t is unsigned and ssize_t is signed.

7 years agoDon't need to emit an empty fixed block when changing parameters.
Mark Adler [Sat, 3 Dec 2016 16:29:57 +0000 (08:29 -0800)]
Don't need to emit an empty fixed block when changing parameters.

gzsetparams() was using Z_PARTIAL_FLUSH when it could use Z_BLOCK
instead. This commit uses Z_BLOCK, which avoids emitting an
unnecessary ten bits into the stream.

7 years agoClean up gz* function return values.
Mark Adler [Sat, 3 Dec 2016 16:18:56 +0000 (08:18 -0800)]
Clean up gz* function return values.

In some cases the return values did not match the documentation,
or the documentation did not document all of the return values.
gzprintf() now consistently returns negative values on error,
which matches the behavior of the stdio fprintf() function.

7 years agoSpeed up deflation for level 0 (storing).
Mark Adler [Sat, 5 Nov 2016 15:43:29 +0000 (08:43 -0700)]
Speed up deflation for level 0 (storing).

The previous code slid the window and the hash table and copied
every input byte three times in order to just write the data as
stored blocks with no compression. This commit minimizes sliding
and copying, especially for large input and output buffers.

Level 0 compression is now more than 20 times faster than before
the commit.

Most of the speedup is due to deferring hash table slides until
deflateParams() is called to change the compression level away
from 0. More speedup is due to copying directly from next_in to
next_out when the amounts of available input data and output space
permit it, avoiding the intermediate pending buffer. Additionally,
only the last 32K of the used input data is copied back to the
sliding window when large input buffers are provided.

7 years agoAssure that deflateParams() will not switch functions mid-block.
Mark Adler [Wed, 23 Nov 2016 07:29:19 +0000 (23:29 -0800)]
Assure that deflateParams() will not switch functions mid-block.

This alters the specification in zlib.h, so that deflateParams()
will not change any parameters if there is not enough output space
in the event that a block is emitted in order to allow switching
the compression function.

7 years agoExplicitly ignore a return value in gzwrite.c.
Mark Adler [Tue, 22 Nov 2016 20:02:29 +0000 (12:02 -0800)]
Explicitly ignore a return value in gzwrite.c.

7 years agoIncrease verbosity required to warn about bit length overflow.
Mark Adler [Sun, 20 Nov 2016 19:36:15 +0000 (11:36 -0800)]
Increase verbosity required to warn about bit length overflow.

When debugging the Huffman coding would warn about resulting codes
greater than 15 bits in length. This is handled properly, and is
not uncommon. This increases the verbosity of the warning by one,
so that it is not displayed by default.

7 years agoAdd uncompress2() function, which returns the input size used.
Mark Adler [Wed, 16 Nov 2016 03:45:01 +0000 (20:45 -0700)]
Add uncompress2() function, which returns the input size used.

7 years agoMinor edits to the documentation in source file contents.
Mark Adler [Mon, 14 Nov 2016 17:19:25 +0000 (10:19 -0700)]
Minor edits to the documentation in source file contents.

7 years agoFix bugs in creating a very large gzip header.
Mark Adler [Sun, 6 Nov 2016 05:55:34 +0000 (22:55 -0700)]
Fix bugs in creating a very large gzip header.

7 years agoAdd --debug (-d) option to ./configure to define ZLIB_DEBUG.
Mark Adler [Sun, 30 Oct 2016 16:33:25 +0000 (09:33 -0700)]
Add --debug (-d) option to ./configure to define ZLIB_DEBUG.

7 years agoUse memcpy for stored blocks.
Mark Adler [Sun, 30 Oct 2016 16:25:32 +0000 (09:25 -0700)]
Use memcpy for stored blocks.

This speeds up level 0 by about a factor of three, as compared to
the previous byte-at-a-time loop. We can do much better though. A
later commit avoids this copy for level 0 with large buffers,
instead copying directly from the input to the output. This commit
still speeds up storing incompressible data found when compressing
normally.

7 years agoFix some typos.
Mark Adler [Sun, 30 Oct 2016 15:36:13 +0000 (08:36 -0700)]
Fix some typos.

7 years agoFix bug when level 0 used with Z_HUFFMAN or Z_RLE.
Mark Adler [Fri, 28 Oct 2016 05:50:43 +0000 (22:50 -0700)]
Fix bug when level 0 used with Z_HUFFMAN or Z_RLE.

Compression level 0 requests no compression, using only stored
blocks. When Z_HUFFMAN or Z_RLE was used with level 0 (granted,
an odd choice, but permitted), the resulting blocks were mostly
fixed or dynamic. The reason is that deflate_stored() was not
being called in that case. The compressed data was valid, but it
was not what the application requested. This commit assures that
only stored blocks are emitted for compression level 0, regardless
of the strategy selected.

7 years agoClean up and comment the use of local for static.
Mark Adler [Wed, 26 Oct 2016 17:25:10 +0000 (10:25 -0700)]
Clean up and comment the use of local for static.

7 years agoMake a noble effort at setting OS_CODE correctly.
Mark Adler [Wed, 26 Oct 2016 03:45:41 +0000 (20:45 -0700)]
Make a noble effort at setting OS_CODE correctly.

This updates the OS_CODE determination at compile time to match as
closely as possible the operating system mappings documented in
the PKWare APPNOTE.TXT version 6.3.4, section 4.4.2.2. That byte
in the gzip header is used by nobody for anything, as far as I can
tell. However we might as well try to set it appropriately.

7 years agoDo a more thorough check of the state for every stream call.
Mark Adler [Tue, 25 Oct 2016 03:11:41 +0000 (20:11 -0700)]
Do a more thorough check of the state for every stream call.

This verifies that the state has been initialized, that it is the
expected type of state, deflate or inflate, and that at least the
first several bytes of the internal state have not been clobbered.

7 years agoDocument the rejection of 256-byte window requests in zlib.h.
Mark Adler [Mon, 24 Oct 2016 23:00:51 +0000 (16:00 -0700)]
Document the rejection of 256-byte window requests in zlib.h.

7 years agoReject a window size of 256 bytes if not using the zlib wrapper.
Mark Adler [Mon, 24 Oct 2016 22:52:19 +0000 (15:52 -0700)]
Reject a window size of 256 bytes if not using the zlib wrapper.

There is a bug in deflate for windowBits == 8 (256-byte window).
As a result, zlib silently changes a request for 8 to a request
for 9 (512-byte window), and sets the zlib header accordingly so
that the decompressor knows to use a 512-byte window. However if
deflateInit2() is used for raw deflate or gzip streams, then there
is no indication that the request was not honored, and the
application might assume that it can use a 256-byte window when
decompressing. This commit returns an error if the user requests
a 256-byte window when using raw deflate or gzip encoding.

7 years agoAvoid obfuscating use of default case in inftrees.c.
Mark Adler [Fri, 14 Oct 2016 20:30:18 +0000 (13:30 -0700)]
Avoid obfuscating use of default case in inftrees.c.

7 years agoMove macro definition in deflate.c to where it is used.
Mark Adler [Fri, 14 Oct 2016 20:18:58 +0000 (13:18 -0700)]
Move macro definition in deflate.c to where it is used.

This avoid defining a macro that is never used when not debugging.

7 years agoAvoid recursive gzgetc() macro call.
Mark Adler [Fri, 14 Oct 2016 20:16:07 +0000 (13:16 -0700)]
Avoid recursive gzgetc() macro call.

Recursive macro calls are normally caught by the preprocessor and
avoided. This commit avoids the possibility of a problem entirely.

7 years agoMake globals in examples local to compilation unit.
Mark Adler [Fri, 14 Oct 2016 20:10:54 +0000 (13:10 -0700)]
Make globals in examples local to compilation unit.

7 years agoAdd --warn option to ./configure, instead of environment variable.
Mark Adler [Wed, 12 Oct 2016 05:21:04 +0000 (22:21 -0700)]
Add --warn option to ./configure, instead of environment variable.

7 years agoClean up type conversions.
Mark Adler [Wed, 12 Oct 2016 05:15:50 +0000 (22:15 -0700)]
Clean up type conversions.

7 years agoAvoid casting an out-of-range value to long.
Mark Adler [Wed, 12 Oct 2016 01:38:20 +0000 (18:38 -0700)]
Avoid casting an out-of-range value to long.

7 years agoNote the violation of the strict aliasing rule in crc32.c.
Mark Adler [Tue, 4 Oct 2016 05:33:26 +0000 (22:33 -0700)]
Note the violation of the strict aliasing rule in crc32.c.

See the comment for more details. This is in response to an issue
raised as a result of a security audit of the zlib code by Trail
of Bits and TrustInSoft, in support of the Mozilla Foundation.

7 years agoAvoid pre-decrement of pointer in big-endian CRC calculation.
Mark Adler [Thu, 29 Sep 2016 03:20:25 +0000 (20:20 -0700)]
Avoid pre-decrement of pointer in big-endian CRC calculation.

There was a small optimization for PowerPCs to pre-increment a
pointer when accessing a word, instead of post-incrementing. This
required prefacing the loop with a decrement of the pointer,
possibly pointing before the object passed. This is not compliant
with the C standard, for which decrementing a pointer before its
allocated memory is undefined. When tested on a modern PowerPC
with a modern compiler, the optimization no longer has any effect.
Due to all that, and per the recommendation of a security audit of
the zlib code by Trail of Bits and TrustInSoft, in support of the
Mozilla Foundation, this "optimization" was removed, in order to
avoid the possibility of undefined behavior.

7 years agoRemove offset pointer optimization in inftrees.c.
Mark Adler [Thu, 22 Sep 2016 06:35:50 +0000 (23:35 -0700)]
Remove offset pointer optimization in inftrees.c.

inftrees.c was subtracting an offset from a pointer to an array,
in order to provide a pointer that allowed indexing starting at
the offset. This is not compliant with the C standard, for which
the behavior of a pointer decremented before its allocated memory
is undefined. Per the recommendation of a security audit of the
zlib code by Trail of Bits and TrustInSoft, in support of the
Mozilla Foundation, this tiny optimization was removed, in order
to avoid the possibility of undefined behavior.

7 years agoUse post-increment only in inffast.c.
Mark Adler [Thu, 22 Sep 2016 05:25:21 +0000 (22:25 -0700)]
Use post-increment only in inffast.c.

An old inffast.c optimization turns out to not be optimal anymore
with modern compilers, and furthermore was not compliant with the
C standard, for which decrementing a pointer before its allocated
memory is undefined. Per the recommendation of a security audit of
the zlib code by Trail of Bits and TrustInSoft, in support of the
Mozilla Foundation, this "optimization" was removed, in order to
avoid the possibility of undefined behavior.

7 years agoRemove dummy structure declarations for old buggy compilers.
Mark Adler [Thu, 22 Sep 2016 03:07:37 +0000 (20:07 -0700)]
Remove dummy structure declarations for old buggy compilers.

While woolly mammoths still roamed the Earth and before Atlantis
sunk into the ocean, there were C compilers that could not handle
forward structure references, e.g. "struct name;". zlib dutifully
provided a work-around for such compilers. That work-around is no
longer needed, and, per the recommendation of a security audit of
the zlib code by Trail of Bits and TrustInSoft, in support of the
Mozilla Foundation, should be removed since what a compiler will
do with this is technically undefined. From the report: "there is
no telling what interactions the bug could have in the future with
link-time optimizations and type-based alias analyses, both
features that are present (but not default) in clang."

7 years agoFix typo.
Mark Adler [Wed, 21 Sep 2016 15:45:59 +0000 (08:45 -0700)]
Fix typo.

7 years agoAdd option to not compute or check check values.
Mark Adler [Wed, 21 Sep 2016 01:49:21 +0000 (18:49 -0700)]
Add option to not compute or check check values.

The undocumented (except in these commit comments) function
inflateValidate(strm, check) can be called after an inflateInit(),
inflateInit2(), or inflateReset2() with check equal to zero to
turn off the check value (CRC-32 or Adler-32) computation and
comparison. Calling with check not equal to zero turns checking
back on. This should only be called immediately after the init or
reset function. inflateReset() does not change the state, so a
previous inflateValidate() setting will remain in effect.

This also turns off validation of the gzip header CRC when
present.

This should only be used when a zlib or gzip stream has already
been checked, and repeated decompressions of the same stream no
longer need to be validated.

7 years agoCorrect the size of the inflate state in the comments.
Mark Adler [Wed, 21 Sep 2016 00:27:28 +0000 (17:27 -0700)]
Correct the size of the inflate state in the comments.

7 years agoFix typo in blast.c.
Mark Adler [Sun, 10 Jul 2016 18:43:17 +0000 (11:43 -0700)]
Fix typo in blast.c.

7 years agoAdd configure.log to .gitignore.
Mark Adler [Sat, 18 Jun 2016 02:36:10 +0000 (19:36 -0700)]
Add configure.log to .gitignore.

8 years agoLoop on write() calls in gzwrite.c in case of non-blocking I/O.
Mark Adler [Tue, 5 Apr 2016 10:09:59 +0000 (03:09 -0700)]
Loop on write() calls in gzwrite.c in case of non-blocking I/O.

8 years agoFix gzseek() problem on MinGW due to buggy _lseeki64 there.
Mark Adler [Sat, 30 Jan 2016 07:24:55 +0000 (23:24 -0800)]
Fix gzseek() problem on MinGW due to buggy _lseeki64 there.

8 years agoFix bug that accepted invalid zlib header when windowBits is zero.
Mark Adler [Fri, 27 Nov 2015 06:52:25 +0000 (22:52 -0800)]
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.

8 years agoUse a consistent and more modern approach to not use a parameter.
Mark Adler [Sun, 4 Oct 2015 18:45:00 +0000 (11:45 -0700)]
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.

8 years agoUse UTF-8 for non-ASCII characters in ChangeLog.
Mark Adler [Wed, 16 Sep 2015 22:40:00 +0000 (15:40 -0700)]
Use UTF-8 for non-ASCII characters in ChangeLog.

8 years agoClean up portability for shifts and integer sizes.
Mark Adler [Sun, 6 Sep 2015 01:56:55 +0000 (18:56 -0700)]
Clean up portability for shifts and integer sizes.

8 years agoAvoid shifts of negative values inflateMark().
Mark Adler [Sun, 6 Sep 2015 00:45:55 +0000 (17:45 -0700)]
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
result.

8 years agoFix typo.
Mark Adler [Sun, 16 Aug 2015 01:14:50 +0000 (18:14 -0700)]
Fix typo.

8 years agoUse const for static tree descriptions in deflate.
Mark Adler [Sun, 16 Aug 2015 01:04:50 +0000 (18:04 -0700)]
Use const for static tree descriptions in deflate.

This is in order to permit shared memory for these structures.

8 years agoAllow building zlib outside of the source directory.
Mark Adler [Sun, 2 Aug 2015 21:46:58 +0000 (14:46 -0700)]
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
Makefile.in with explicit dependencies.

8 years agoDo not initialize unsigned with -1 in compress.c uncompr.c.
Mark Adler [Sun, 2 Aug 2015 23:47:14 +0000 (16:47 -0700)]
Do not initialize unsigned with -1 in compress.c uncompr.c.

Sun compiler complained.  Use (unsigned)0 - 1 instead.

8 years agoAlign deflateParams() and its documentation in zlib.h.
Mark Adler [Sun, 2 Aug 2015 07:02:07 +0000 (00:02 -0700)]
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.

8 years agoCompile the gzopen_w() function when __CYGWIN__ defined.
Mark Adler [Sun, 2 Aug 2015 00:38:56 +0000 (17:38 -0700)]
Compile the gzopen_w() function when __CYGWIN__ defined.

8 years agoDefine _POSIX_SOURCE to enable POSIX extensions on some systems.
Mark Adler [Wed, 29 Jul 2015 06:32:35 +0000 (23:32 -0700)]
Define _POSIX_SOURCE to enable POSIX extensions on some systems.

8 years agoClarify deflateReset() documentation.
Mark Adler [Wed, 29 Jul 2015 06:17:49 +0000 (23:17 -0700)]
Clarify deflateReset() documentation.

It previously could have been misinterpreted to mean that parameter
changes after deflateInit2() would be reversed, which is not the
case.

8 years agoAvoid uninitialized access by gzclose_w().
Mark Adler [Wed, 29 Jul 2015 06:13:53 +0000 (23:13 -0700)]
Avoid uninitialized access by gzclose_w().

8 years agoAvoid use of DEBUG macro -- change to ZLIB_DEBUG.
Mark Adler [Wed, 29 Jul 2015 05:44:31 +0000 (22:44 -0700)]
Avoid use of DEBUG macro -- change to ZLIB_DEBUG.

8 years agoAvoid use of reallocf() in test/infcover.c.
Mark Adler [Wed, 29 Jul 2015 04:55:09 +0000 (21:55 -0700)]
Avoid use of reallocf() in test/infcover.c.

8 years agoFix inflateInit2() bug when windowBits is 16 or 32.
Mark Adler [Wed, 29 Jul 2015 04:41:20 +0000 (21:41 -0700)]
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.

8 years agoAdd comment about not using windowBits of 8 for deflate().
Mark Adler [Wed, 29 Jul 2015 04:06:06 +0000 (21:06 -0700)]
Add comment about not using windowBits of 8 for deflate().

8 years agoPut license in zlib.3 man page.
Mark Adler [Wed, 8 Jul 2015 03:11:01 +0000 (20:11 -0700)]
Put license in zlib.3 man page.

Previously there was a confusing reference to a "distribution
directory".

8 years agoImprove speed of gzprintf() in transparent mode.
Mark Adler [Mon, 6 Jul 2015 01:14:53 +0000 (18:14 -0700)]
Improve speed of gzprintf() in transparent mode.

8 years agoAvoid left shift of a negative value in flush rank calculation.
Mark Adler [Sun, 5 Jul 2015 20:51:50 +0000 (13:51 -0700)]
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.

9 years agoRemedy Coverity warning. [Randers-Pehrson]
Mark Adler [Tue, 27 Jan 2015 05:41:26 +0000 (21:41 -0800)]
Remedy Coverity warning. [Randers-Pehrson]

9 years agoAdd inflateCodesUsed() function for internal use.
Mark Adler [Mon, 29 Dec 2014 08:18:42 +0000 (00:18 -0800)]
Add inflateCodesUsed() function for internal use.

9 years agoFix bug in test/example.c where error code not saved.
Mark Adler [Wed, 2 Jul 2014 23:34:22 +0000 (16:34 -0700)]
Fix bug in test/example.c where error code not saved.

10 years agoNote in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.
Mark Adler [Sat, 26 Apr 2014 15:12:37 +0000 (08:12 -0700)]
Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.

10 years agoFix uncompress() to work on lengths more than a maximum unsigned.
Mark Adler [Sat, 26 Apr 2014 15:04:09 +0000 (08:04 -0700)]
Fix uncompress() to work on lengths more than a maximum unsigned.

10 years agoFix compress() to work on lengths more than a maximum unsigned.
Mark Adler [Sat, 26 Apr 2014 04:52:19 +0000 (21:52 -0700)]
Fix compress() to work on lengths more than a maximum unsigned.

10 years agoAssure that gzoffset() is correct when appending.
Mark Adler [Thu, 24 Apr 2014 23:45:36 +0000 (19:45 -0400)]
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.

10 years agoImprove contrib/blast to return unused bytes. Fix the test code
Mark Adler [Sat, 24 Aug 2013 08:53:31 +0000 (01:53 -0700)]
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().

10 years agoFix contrib/minizip to permit unzipping with desktop API [Zouzou].
Mark Adler [Sun, 4 Aug 2013 01:13:23 +0000 (18:13 -0700)]
Fix contrib/minizip to permit unzipping with desktop API [Zouzou].

11 years agoSpacing cleanup.
Mark Adler [Fri, 24 May 2013 03:11:54 +0000 (20:11 -0700)]
Spacing cleanup.

11 years agoChange version number to 1.2.8.1.
Mark Adler [Fri, 3 May 2013 06:12:54 +0000 (23:12 -0700)]
Change version number to 1.2.8.1.

11 years agozlib 1.2.8 v1.2.8
Mark Adler [Sun, 28 Apr 2013 23:03:34 +0000 (16:03 -0700)]
zlib 1.2.8

11 years agoFix mixed line endings in contrib/vstudio.
Mark Adler [Mon, 29 Apr 2013 00:21:50 +0000 (17:21 -0700)]
Fix mixed line endings in contrib/vstudio.

11 years agoCorrect spelling error in zlib.h.
Mark Adler [Sun, 28 Apr 2013 22:36:25 +0000 (15:36 -0700)]
Correct spelling error in zlib.h.

11 years agoClean up contrib/vstudio [Roß].
Mark Adler [Fri, 19 Apr 2013 07:47:59 +0000 (21:47 -1000)]
Clean up contrib/vstudio [Roß].

11 years agoUpdate some copyright years.
Mark Adler [Fri, 19 Apr 2013 07:38:15 +0000 (21:38 -1000)]
Update some copyright years.

11 years agoDo not force Z_CONST for C++.
Mark Adler [Sun, 14 Apr 2013 17:31:31 +0000 (10:31 -0700)]
Do not force Z_CONST for C++.

Forcing Z_CONST resulted in an issue when compiling Firefox.  Now
if someone wants to compile zlib as C++ code (which it isn't), now
they will need to #define Z_CONST themselves.

11 years agoUpdate contrib/minizip/iowin32.c for Windows RT [Vollant].
Mark Adler [Sun, 14 Apr 2013 17:05:43 +0000 (10:05 -0700)]
Update contrib/minizip/iowin32.c for Windows RT [Vollant].

11 years agoChange version number to 1.2.8.
Mark Adler [Sun, 14 Apr 2013 04:38:26 +0000 (21:38 -0700)]
Change version number to 1.2.8.

11 years agozlib 1.2.7.3 v1.2.7.3
Mark Adler [Sun, 14 Apr 2013 04:18:35 +0000 (21:18 -0700)]
zlib 1.2.7.3

11 years agoFix version numbers and DLL names in contrib/vstudio/*/zlib.rc.
Mark Adler [Sun, 14 Apr 2013 02:11:47 +0000 (19:11 -0700)]
Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc.

11 years agoChange version number to 1.2.7.3.
Mark Adler [Sun, 14 Apr 2013 01:58:46 +0000 (18:58 -0700)]
Change version number to 1.2.7.3.

11 years agozlib 1.2.7.2 v1.2.7.2
Mark Adler [Sun, 14 Apr 2013 01:15:42 +0000 (18:15 -0700)]
zlib 1.2.7.2

11 years agoAdd casts in gzwrite.c for pointer differences.
Mark Adler [Sun, 14 Apr 2013 01:04:06 +0000 (18:04 -0700)]
Add casts in gzwrite.c for pointer differences.

11 years agoFix typo in win32/Makefile.msc.
Mark Adler [Sun, 14 Apr 2013 00:54:57 +0000 (17:54 -0700)]
Fix typo in win32/Makefile.msc.

11 years agoChange check for a four-byte type back to hexadecimal.
Mark Adler [Sat, 13 Apr 2013 22:54:03 +0000 (15:54 -0700)]
Change check for a four-byte type back to hexadecimal.

11 years agoChange version number to 1.2.7.2.
Mark Adler [Sat, 13 Apr 2013 15:08:57 +0000 (08:08 -0700)]
Change version number to 1.2.7.2.

11 years agozlib 1.2.7.1 v1.2.7.1
Mark Adler [Mon, 25 Mar 2013 05:46:40 +0000 (22:46 -0700)]
zlib 1.2.7.1

11 years agoLine length cleanup.
Mark Adler [Mon, 25 Mar 2013 05:30:40 +0000 (22:30 -0700)]
Line length cleanup.

11 years agoDo not return Z_BUF_ERROR if deflateParam() has nothing to write.
Mark Adler [Mon, 25 Mar 2013 05:12:31 +0000 (22:12 -0700)]
Do not return Z_BUF_ERROR if deflateParam() has nothing to write.

If the compressed data was already at a block boundary, then
deflateParam() would report Z_BUF_ERROR, because there was nothing
to write.  With this patch, Z_OK is returned in that case.

11 years agoIn Makefile uninstall, don't rm if preceding cd fails.
Mark Adler [Sun, 24 Mar 2013 23:57:32 +0000 (16:57 -0700)]
In Makefile uninstall, don't rm if preceding cd fails.

11 years agoMinor spacing cleanup in a comment in gzguts.h.
Mark Adler [Sun, 24 Mar 2013 23:56:05 +0000 (16:56 -0700)]
Minor spacing cleanup in a comment in gzguts.h.

11 years agoAdd man pages for minizip and miniunzip.
Enrico Weigelt, metux IT service [Tue, 6 Jul 2010 18:06:08 +0000 (20:06 +0200)]
Add man pages for minizip and miniunzip.

11 years agoAdd casts and consts to ease user conversion to C++.
Mark Adler [Sun, 24 Mar 2013 22:18:02 +0000 (15:18 -0700)]
Add casts and consts to ease user conversion to C++.

You would still need to run zlib2ansi on all of the *.c files.

11 years agoClean up the addition of gzvprintf.
Mark Adler [Sun, 24 Mar 2013 06:47:15 +0000 (23:47 -0700)]
Clean up the addition of gzvprintf.

11 years agoClean up the addition of inflateGetDictionary.
Mark Adler [Sun, 24 Mar 2013 05:57:27 +0000 (22:57 -0700)]
Clean up the addition of inflateGetDictionary.

11 years agoRemove runtime check in configure for four-byte integer type.
Mark Adler [Sun, 24 Mar 2013 05:27:43 +0000 (22:27 -0700)]
Remove runtime check in configure for four-byte integer type.

That didn't work when cross-compiling.  Simply rely on limits.h.
If a compiler does not have limits.h, then zconf.h.in should be
modified to define Z_U4 as an unsiged four-byte integer type in
order for crc32() to be fast.

This also simplifies and makes more portable to check for a four-
byte type using limits.h.

11 years agoFix configure for Sun shell.
Mark Adler [Sat, 23 Mar 2013 20:50:10 +0000 (13:50 -0700)]
Fix configure for Sun shell.

11 years agoAdd gzvprintf() as an undocumented function in zlib.
Mark Adler [Sat, 23 Mar 2013 01:32:37 +0000 (18:32 -0700)]
Add gzvprintf() as an undocumented function in zlib.

The function is only available if stdarg.h is available.

11 years agoAdd vc11 and vc12 build files to contrib/vstudio.
Mark Adler [Sat, 23 Mar 2013 00:38:37 +0000 (17:38 -0700)]
Add vc11 and vc12 build files to contrib/vstudio.