platform/upstream/zlib.git
12 years agoAdd #define ZLIB_CONST option to use const in the z_stream interface.
Mark Adler [Wed, 19 Oct 2011 06:05:37 +0000 (23:05 -0700)]
Add #define ZLIB_CONST option to use const in the z_stream interface.

This permits compilers to check for the proper treatment of next_in and
msg in the z_stream structure.  This is an option instead of the default
in order to preserve backward compatibility.  Some applications make use
of the z_stream structure outside of zlib, and perform operations such
as free(strm->next_in), which would not be permitted when next_in is
const.  The #define ZLIB_CONST needs to precede the #include "zlib.h">,
in order to make next_in and msg const pointers in the z_stream type.

12 years agoFix indentation of code in inflate.c.
Mark Adler [Sun, 9 Oct 2011 22:25:48 +0000 (15:25 -0700)]
Fix indentation of code in inflate.c.

12 years agoAdd --cover option to ./configure for gcc coverage testing.
Mark Adler [Sun, 9 Oct 2011 17:16:43 +0000 (10:16 -0700)]
Add --cover option to ./configure for gcc coverage testing.

This adds the -fprofile-arcs and -ftest-coverage options when compiling
the source code for the static library.  Those same options must then be
used when linking the static library into an executable.  This updates
Makefile.in to remove and .gitignore to ignore the files generated when
testing coverage.

12 years agoMove example.c and minigzip.c to examples/ directory.
Mark Adler [Sun, 9 Oct 2011 16:50:48 +0000 (09:50 -0700)]
Move example.c and minigzip.c to examples/ directory.

12 years agoAdd undocumented inflateResetKeep() function for CAB file decoding.
Mark Adler [Sat, 8 Oct 2011 06:00:42 +0000 (23:00 -0700)]
Add undocumented inflateResetKeep() function for CAB file decoding.

The Microsoft CAB file format compresses each block with completed
deflate streams that depend on the sliding window history of the
previous block in order to decode.  inflateResetKeep() does what
inflateReset() does, except the sliding window history from the
previous inflate operation is retained.

12 years agoAdd a ./config --solo option to make zlib subset with no libary use
Mark Adler [Fri, 7 Oct 2011 08:57:07 +0000 (01:57 -0700)]
Add a ./config --solo option to make zlib subset with no libary use

A common request has been the ability to compile zlib to require no
other libraries.  This --solo option provides that ability.  The price
is that the gz*, compress*, and uncompress functions are eliminated,
and that the user must provide memory allocation and free routines to
deflate and inflate when initializing.

12 years agoGet inffixed.h and MAKEFIXED result to match.
Mark Adler [Thu, 6 Oct 2011 03:32:32 +0000 (20:32 -0700)]
Get inffixed.h and MAKEFIXED result to match.

12 years agoUpdate python link in zlib man page.
Mark Adler [Mon, 3 Oct 2011 01:45:21 +0000 (18:45 -0700)]
Update python link in zlib man page.

12 years agoAdd a transparent write mode to gzopen() when 'T' is in the mode.
Mark Adler [Sun, 2 Oct 2011 20:24:43 +0000 (13:24 -0700)]
Add a transparent write mode to gzopen() when 'T' is in the mode.

12 years agoCorrect documentation of gzdirect() since junk at end now ignored.
Mark Adler [Sun, 2 Oct 2011 19:13:50 +0000 (12:13 -0700)]
Correct documentation of gzdirect() since junk at end now ignored.

12 years agoClarify how gzopen() appends in zlib.h comments.
Mark Adler [Sun, 2 Oct 2011 19:09:29 +0000 (12:09 -0700)]
Clarify how gzopen() appends in zlib.h comments.

12 years agoMerge vestigial vsnprintf determination from zutil.h to gzguts.h.
Mark Adler [Sun, 2 Oct 2011 18:15:00 +0000 (11:15 -0700)]
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.

12 years agoUpdate zconf.h.cmakein on make distclean.
Mark Adler [Sun, 2 Oct 2011 08:01:47 +0000 (01:01 -0700)]
Update zconf.h.cmakein on make distclean.

12 years agoInclude zconf.h.cmakein for windows large file support.
Mark Adler [Sat, 1 Oct 2011 17:19:36 +0000 (10:19 -0700)]
Include zconf.h.cmakein for windows large file support.

12 years agoInclude zconf.h for windows large file support.
Mark Adler [Sat, 1 Oct 2011 17:16:04 +0000 (10:16 -0700)]
Include zconf.h for windows large file support.

12 years agoAlways add large file support for windows
Tor Lillqvist [Sun, 18 Sep 2011 19:46:44 +0000 (21:46 +0200)]
Always add large file support for windows

12 years agoUpdate copyright dates on gz* source files.
Mark Adler [Sat, 1 Oct 2011 05:26:04 +0000 (22:26 -0700)]
Update copyright dates on gz* source files.

12 years agoFix gzclose() to return the actual error last encountered.
Mark Adler [Sat, 1 Oct 2011 05:19:12 +0000 (22:19 -0700)]
Fix gzclose() to return the actual error last encountered.

12 years agoChange gzgetc() to a macro for speed (~40% speedup in testing).
Mark Adler [Tue, 27 Sep 2011 05:50:28 +0000 (22:50 -0700)]
Change gzgetc() to a macro for speed (~40% speedup in testing).

12 years agoSimplify gzseek() now that raw after gzip is ignored.
Mark Adler [Tue, 27 Sep 2011 01:34:07 +0000 (18:34 -0700)]
Simplify gzseek() now that raw after gzip is ignored.

12 years agoAllow gzrewind() and gzseek() after a premature end-of-file.
Mark Adler [Tue, 27 Sep 2011 01:20:32 +0000 (18:20 -0700)]
Allow gzrewind() and gzseek() after a premature end-of-file.

12 years agoAllow gzread() and related to continue after gzclearerr().
Mark Adler [Mon, 26 Sep 2011 07:57:26 +0000 (00:57 -0700)]
Allow gzread() and related to continue after gzclearerr().

Before this fix, gzread() would lose data if a premature end of file
was encountered.  This prevented gzread() from being used on a file
that was being written concurrently.  Now gzread() returns all of the
data it has available before indicating a premature end of file.

This also changes the error returned on a premature end of file from
Z_DATA_ERROR to Z_BUF_ERROR.  This allows the user to determine if
the error is recoverable, which it is if Z_BUF_ERROR is returned.  If
a Z_DATA_ERROR is returned, then the error is not recoverable.

This patch replaces the functionality of a previous patch that fixed
reading through an empty gzip stream in a concatenation of gzip
streams.

To implement this fix, a noticeable rewrite of gzread.c was needed.
The patch has the added advantage of using inflate's gzip processing
instead of replicating the functionality in gzread.c.  This makes the
gz code a little simpler.

12 years agoChange gzread() and related to ignore junk after gzip streams.
Mark Adler [Sat, 24 Sep 2011 17:26:07 +0000 (10:26 -0700)]
Change gzread() and related to ignore junk after gzip streams.

Previously the new gz* functions (introduced in 1.2.4) would read and
return raw data after the last gzip stream.  This is inconsistent with
the behavior of gzip and the previous versions of zlib.  Now when one
or more gzip streams have been decoded from the file, which is then
followed by data that is not a gzip stream (as detemined by not finding
the magic header), then that subsequent trailing garbage is ignored,
and no error is returned.

12 years agoCorrect error in comment for gz_make().
Mark Adler [Sat, 24 Sep 2011 15:33:38 +0000 (08:33 -0700)]
Correct error in comment for gz_make().

12 years agoFix bug in gzgets() for a concatenated empty gzip stream.
Mark Adler [Sat, 24 Sep 2011 07:29:46 +0000 (00:29 -0700)]
Fix bug in gzgets() for a concatenated empty gzip stream.

12 years agoCorrect spelling error in gzread.c
Mark Adler [Sat, 24 Sep 2011 07:09:31 +0000 (00:09 -0700)]
Correct spelling error in gzread.c

12 years agoUpdate python link in README
Mark Adler [Fri, 23 Sep 2011 16:53:49 +0000 (09:53 -0700)]
Update python link in README

12 years agoAdd assertions to fill_window() in deflate.c to match comments.
Mark Adler [Fri, 23 Sep 2011 06:55:31 +0000 (23:55 -0700)]
Add assertions to fill_window() in deflate.c to match comments.

12 years agoAssure that high-water mark initialization is always applied in deflate.
Mark Adler [Fri, 23 Sep 2011 06:48:04 +0000 (23:48 -0700)]
Assure that high-water mark initialization is always applied in deflate.

12 years agoAvoid searching past window for Z_RLE strategy.
Mark Adler [Fri, 23 Sep 2011 06:45:00 +0000 (23:45 -0700)]
Avoid searching past window for Z_RLE strategy.

Without this, Z_RLE could under some circumstances read one byte past
the end of the allocated sliding window. This would normally not be a
problem unless the window is right at the end of an allocated page, or
if a bounds checker is being used.

12 years agouse relative symlinks for shared libs
Mike Frysinger [Sun, 11 Sep 2011 18:46:44 +0000 (14:46 -0400)]
use relative symlinks for shared libs

The DESTDIR should not be encoded into symlinks as it is only a
temporary path.  Further, since we install the symlinks into the
same dir as the files, let's use relative links so that they can
always resolve.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoAdd .gitignore [Frysinger]
Mark Adler [Sun, 11 Sep 2011 18:50:36 +0000 (11:50 -0700)]
Add .gitignore [Frysinger]

12 years agofix ld error: unable to find version dependency `ZLIB_1.2.5'
Török Edwin [Sun, 11 Sep 2011 07:00:52 +0000 (10:00 +0300)]
fix ld error: unable to find version dependency `ZLIB_1.2.5'

12 years agoChange version numbers to 1.2.5.2 and release dates
Mark Adler [Sun, 11 Sep 2011 18:16:41 +0000 (11:16 -0700)]
Change version numbers to 1.2.5.2 and release dates

Also added "-motley" to ZLIB_VERSION in zlib.h, so that versions
in-between 1.2.5.1 and 1.2.5.2 that are pulled down from github
can be identified as such if bugs are reported on them.

12 years agozlib 1.2.5.1
Mark Adler [Sun, 11 Sep 2011 18:04:49 +0000 (11:04 -0700)]
zlib 1.2.5.1

12 years agozlib 1.2.5
Mark Adler [Sat, 10 Sep 2011 06:35:10 +0000 (23:35 -0700)]
zlib 1.2.5

12 years agozlib 1.2.4.5
Mark Adler [Sat, 10 Sep 2011 06:34:55 +0000 (23:34 -0700)]
zlib 1.2.4.5

12 years agozlib 1.2.4.4
Mark Adler [Sat, 10 Sep 2011 06:34:45 +0000 (23:34 -0700)]
zlib 1.2.4.4

12 years agozlib 1.2.4.3
Mark Adler [Sat, 10 Sep 2011 06:34:38 +0000 (23:34 -0700)]
zlib 1.2.4.3

12 years agozlib 1.2.4.2
Mark Adler [Sat, 10 Sep 2011 06:34:30 +0000 (23:34 -0700)]
zlib 1.2.4.2

12 years agozlib 1.2.4.1
Mark Adler [Sat, 10 Sep 2011 06:34:22 +0000 (23:34 -0700)]
zlib 1.2.4.1

12 years agozlib 1.2.4
Mark Adler [Sat, 10 Sep 2011 06:33:59 +0000 (23:33 -0700)]
zlib 1.2.4

12 years agozlib 1.2.4-pre2
Mark Adler [Sat, 10 Sep 2011 06:33:23 +0000 (23:33 -0700)]
zlib 1.2.4-pre2

12 years agozlib 1.2.4-pre1
Mark Adler [Sat, 10 Sep 2011 06:32:36 +0000 (23:32 -0700)]
zlib 1.2.4-pre1

12 years agozlib 1.2.3.9
Mark Adler [Sat, 10 Sep 2011 06:27:26 +0000 (23:27 -0700)]
zlib 1.2.3.9

12 years agozlib 1.2.3.8
Mark Adler [Sat, 10 Sep 2011 06:27:17 +0000 (23:27 -0700)]
zlib 1.2.3.8

12 years agozlib 1.2.3.7
Mark Adler [Sat, 10 Sep 2011 06:27:08 +0000 (23:27 -0700)]
zlib 1.2.3.7

12 years agozlib 1.2.3.6
Mark Adler [Sat, 10 Sep 2011 06:26:58 +0000 (23:26 -0700)]
zlib 1.2.3.6

12 years agozlib 1.2.3.5
Mark Adler [Sat, 10 Sep 2011 06:26:49 +0000 (23:26 -0700)]
zlib 1.2.3.5

12 years agozlib 1.2.3.4
Mark Adler [Sat, 10 Sep 2011 06:26:40 +0000 (23:26 -0700)]
zlib 1.2.3.4

12 years agozlib 1.2.3.3
Mark Adler [Sat, 10 Sep 2011 06:26:29 +0000 (23:26 -0700)]
zlib 1.2.3.3

12 years agozlib 1.2.3.2
Mark Adler [Sat, 10 Sep 2011 06:25:38 +0000 (23:25 -0700)]
zlib 1.2.3.2

12 years agozlib 1.2.3.1
Mark Adler [Sat, 10 Sep 2011 06:25:27 +0000 (23:25 -0700)]
zlib 1.2.3.1

12 years agozlib 1.2.3
Mark Adler [Sat, 10 Sep 2011 06:25:17 +0000 (23:25 -0700)]
zlib 1.2.3

12 years agozlib 1.2.2.4
Mark Adler [Sat, 10 Sep 2011 06:24:52 +0000 (23:24 -0700)]
zlib 1.2.2.4

12 years agozlib 1.2.2.3
Mark Adler [Sat, 10 Sep 2011 06:24:43 +0000 (23:24 -0700)]
zlib 1.2.2.3

12 years agozlib 1.2.2.2
Mark Adler [Sat, 10 Sep 2011 06:24:33 +0000 (23:24 -0700)]
zlib 1.2.2.2

12 years agozlib 1.2.2.1
Mark Adler [Sat, 10 Sep 2011 06:24:24 +0000 (23:24 -0700)]
zlib 1.2.2.1

12 years agozlib 1.2.2
Mark Adler [Sat, 10 Sep 2011 06:24:02 +0000 (23:24 -0700)]
zlib 1.2.2

12 years agozlib 1.2.1.2
Mark Adler [Sat, 10 Sep 2011 06:23:45 +0000 (23:23 -0700)]
zlib 1.2.1.2

12 years agozlib 1.2.1.1
Mark Adler [Sat, 10 Sep 2011 06:23:38 +0000 (23:23 -0700)]
zlib 1.2.1.1

12 years agozlib 1.2.1
Mark Adler [Sat, 10 Sep 2011 06:23:27 +0000 (23:23 -0700)]
zlib 1.2.1

12 years agozlib 1.2.0.8
Mark Adler [Sat, 10 Sep 2011 06:23:14 +0000 (23:23 -0700)]
zlib 1.2.0.8

12 years agozlib 1.2.0.7
Mark Adler [Sat, 10 Sep 2011 06:23:01 +0000 (23:23 -0700)]
zlib 1.2.0.7

12 years agozlib 1.2.0.6
Mark Adler [Sat, 10 Sep 2011 06:22:48 +0000 (23:22 -0700)]
zlib 1.2.0.6

12 years agozlib 1.2.0.5
Mark Adler [Sat, 10 Sep 2011 06:22:37 +0000 (23:22 -0700)]
zlib 1.2.0.5

12 years agozlib 1.2.0.4
Mark Adler [Sat, 10 Sep 2011 06:22:30 +0000 (23:22 -0700)]
zlib 1.2.0.4

12 years agozlib 1.2.0.3
Mark Adler [Sat, 10 Sep 2011 06:22:21 +0000 (23:22 -0700)]
zlib 1.2.0.3

12 years agozlib 1.2.0.2
Mark Adler [Sat, 10 Sep 2011 06:22:10 +0000 (23:22 -0700)]
zlib 1.2.0.2

12 years agozlib 1.2.0.1
Mark Adler [Sat, 10 Sep 2011 06:21:57 +0000 (23:21 -0700)]
zlib 1.2.0.1

12 years agozlib 1.2.0
Mark Adler [Sat, 10 Sep 2011 06:21:47 +0000 (23:21 -0700)]
zlib 1.2.0

12 years agozlib 1.1.4
Mark Adler [Sat, 10 Sep 2011 06:20:42 +0000 (23:20 -0700)]
zlib 1.1.4

12 years agozlib 1.1.3
Mark Adler [Sat, 10 Sep 2011 06:20:29 +0000 (23:20 -0700)]
zlib 1.1.3

12 years agozlib 1.1.2
Mark Adler [Sat, 10 Sep 2011 06:20:15 +0000 (23:20 -0700)]
zlib 1.1.2

12 years agozlib 1.1.1
Mark Adler [Sat, 10 Sep 2011 06:20:07 +0000 (23:20 -0700)]
zlib 1.1.1

12 years agozlib 1.1.0
Mark Adler [Sat, 10 Sep 2011 06:19:55 +0000 (23:19 -0700)]
zlib 1.1.0

12 years agozlib 1.0.9
Mark Adler [Sat, 10 Sep 2011 06:19:21 +0000 (23:19 -0700)]
zlib 1.0.9

12 years agozlib 1.0.8
Mark Adler [Sat, 10 Sep 2011 06:18:57 +0000 (23:18 -0700)]
zlib 1.0.8

12 years agozlib 1.0.7
Mark Adler [Sat, 10 Sep 2011 06:17:33 +0000 (23:17 -0700)]
zlib 1.0.7

12 years agozlib 1.0.5
Mark Adler [Sat, 10 Sep 2011 06:17:17 +0000 (23:17 -0700)]
zlib 1.0.5

12 years agozlib 1.0.4
Mark Adler [Sat, 10 Sep 2011 06:17:02 +0000 (23:17 -0700)]
zlib 1.0.4

12 years agozlib 1.0.2
Mark Adler [Sat, 10 Sep 2011 06:15:17 +0000 (23:15 -0700)]
zlib 1.0.2

12 years agozlib 1.0.1
Mark Adler [Sat, 10 Sep 2011 06:14:39 +0000 (23:14 -0700)]
zlib 1.0.1

12 years agozlib 1.0-pre
Mark Adler [Sat, 10 Sep 2011 06:13:27 +0000 (23:13 -0700)]
zlib 1.0-pre

12 years agozlib 0.99
Mark Adler [Sat, 10 Sep 2011 06:11:37 +0000 (23:11 -0700)]
zlib 0.99

12 years agozlib 0.95
Mark Adler [Sat, 10 Sep 2011 06:10:21 +0000 (23:10 -0700)]
zlib 0.95

12 years agozlib 0.94
Mark Adler [Sat, 10 Sep 2011 06:09:18 +0000 (23:09 -0700)]
zlib 0.94

12 years agozlib 0.93
Mark Adler [Sat, 10 Sep 2011 06:08:28 +0000 (23:08 -0700)]
zlib 0.93

12 years agozlib 0.92
Mark Adler [Sat, 10 Sep 2011 06:08:07 +0000 (23:08 -0700)]
zlib 0.92

12 years agozlib 0.91
Mark Adler [Sat, 10 Sep 2011 06:07:35 +0000 (23:07 -0700)]
zlib 0.91

12 years agozlib 0.9
Mark Adler [Sat, 10 Sep 2011 06:06:52 +0000 (23:06 -0700)]
zlib 0.9

12 years agozlib 0.8
Mark Adler [Sat, 10 Sep 2011 06:03:14 +0000 (23:03 -0700)]
zlib 0.8

12 years agozlib 0.79
Mark Adler [Sat, 10 Sep 2011 05:52:17 +0000 (22:52 -0700)]
zlib 0.79

12 years agozlib 0.71
Mark Adler [Sat, 10 Sep 2011 05:36:31 +0000 (22:36 -0700)]
zlib 0.71