|
dd5d0940
|
2013-03-22T17:38:37
|
|
Add vc11 and vc12 build files to contrib/vstudio.
|
|
a2d71e8e
|
2013-02-24T00:16:24
|
|
Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.
|
|
bc7e0171
|
2013-02-12T02:41:27
|
|
Suport i686 and amd64 assembler builds in CMakeLists.txt.
* Use -DASM686=1 to build with i686 asm.
* Use -DAMD64=1 to build with amd64 asm.
|
|
64a77fac
|
2012-12-20T12:36:55
|
|
Add TOP support to win32/Makefile.msc.
Facilitate multi-platform compilation, e.g.:
nmake -f pathto\zlib\win32\Makefile.msc TOP=pathto\zlib
|
|
79a7058b
|
2012-12-11T21:44:56
|
|
Simplify contrib/vstudio/vc10 with 'd' suffix.
|
|
63ba7582
|
2012-11-30T19:43:50
|
|
Fix types in contrib/minizip to match result of get_crc_table().
|
|
00dfee0b
|
2012-11-27T07:27:06
|
|
Fix casting error in contrib/testzlib/testzlib.c.
|
|
27b77232
|
2012-11-13T12:41:30
|
|
Don't specify --version-script on Apple platforms in CMakeLists.txt.
Mac OS X's linker (derived from LLVM, not GNU binutils) does not support
--version-script. Don't specify it on this platform.
|
|
bb97bc9d
|
2012-11-13T12:35:50
|
|
Quote --version-script argument in CMakeLists.txt.
Previously, spaces in ${CMAKE_CURRENT_SOURCE_PATH} would expand into
multiple linker arguments.
|
|
b116fb58
|
2012-09-14T16:48:12
|
|
Add contrib/vstudio/vc10 pre-build step for static only.
Also correct typo for 64-bit debug build.
|
|
5afbdaba
|
2013-02-23T20:56:23
|
|
Add _tr_flush_bits to the external symbols prefixed by --zprefix.
|
|
d211ecdf
|
2013-02-23T20:27:13
|
|
Use underscored I/O function names for WINAPI_FAMILY.
Suggested by E. Timothy Uy.
|
|
931aa25a
|
2013-02-23T20:12:20
|
|
Update inflateBack() comments, since inflate() can be faster.
|
|
51370f36
|
2013-02-18T21:06:35
|
|
Fix serious but very rare decompression bug in inftrees.c.
inftrees.c compared the number of used table entries to the maximum
allowed value using >= instead of >. This patch fixes those to use
>. The bug was discovered by Ignat Kolesnichenko of Yandex LC
where they have run petabytes of data through zlib. Triggering the
bug is apparently very rare, seeing as how it has been out there in
the wild for almost three years before being discovered. The bug
is instantiated only if the exact maximum number of decoding table
entries, ENOUGH_DISTS or ENOUGH_LENS is used by the block being
decoded, resulting in the false positive of overflowing the table.
|
|
10056909
|
2013-01-21T10:15:51
|
|
Check for invalid code length codes in contrib/puff.
Without this fix, it would be possible to construct inputs to puff
that would cause it to segfault.
|
|
b6c5057c
|
2012-10-24T22:50:23
|
|
Fix comparisons of differently signed integers in contrib/blast.
|
|
b8522e02
|
2012-10-24T22:47:37
|
|
Add note to contrib/blast to use binary mode in stdio.
|
|
e69a9cee
|
2012-10-11T16:10:59
|
|
Check for input buffer malloc failure in examples/gzappend.c.
|
|
c4888637
|
2012-10-01T22:42:35
|
|
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.
|
|
0cf495a1
|
2012-09-29T22:23:47
|
|
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.
|
|
bd143f1c
|
2012-09-29T21:48:18
|
|
Fix memory allocation error in examples/zran.c [Nor].
|
|
aa566e86
|
2012-08-24T15:02:28
|
|
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.
|
|
17068938
|
2012-08-18T17:59:50
|
|
Avoid shift equal to bits in type (caused endless loop).
Also clean up comparisons between different types, and some odd
indentation problems that showed up somehow.
A new endless loop was introduced by the clang compiler, which
apparently does odd things when the right operand of << is equal to
or greater than the number of bits in the type. The C standard in
fact states that the behavior of << is undefined in that case. The
loop was rewritten to use single-bit shifts.
|
|
3d9df6ec
|
2012-08-14T00:31:23
|
|
Clean up examples/gzlog.[ch] comparisons of different types.
|
|
a2981775
|
2012-08-14T00:30:44
|
|
Clean up examples/gzjoin.c for z_const usage.
|
|
aa210a1b
|
2012-08-14T00:29:58
|
|
Fix example/gzappend.c for proper z_const usage.
|
|
360c3e95
|
2012-08-13T21:49:10
|
|
Update examples/gun.c for proper z_const usage.
|
|
62d6112a
|
2012-08-12T18:08:52
|
|
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.
|
|
fb4e0599
|
2012-07-08T17:01:13
|
|
Fix argument checks in gzlog_compress() and gzlog_write().
|
|
aef4174d
|
2012-07-08T16:48:36
|
|
Remove unused variable in infback9.c.
|
|
f51cc49c
|
2012-06-06T20:30:39
|
|
Fix comment typos in unzip.h and unzip.c.
|
|
d0c73312
|
2012-06-07T01:25:36
|
|
Update copyright year in win32/zlib1.rc.
|
|
486ef7b4
|
2012-06-07T01:23:32
|
|
Fix CMake compilation of static lib for MSVC2010 x64.
|
|
bfac1564
|
2012-06-09T22:42:24
|
|
Fix configure check for veracity of compiler error return codes.
There were two problems before that this fixes. One was that the
check for the compiler error return code preceded the determination
of the compiler and its options. The other was that the checks
for compiler and library characteristics could be fooled if the
error options were set to reject K&R-style C. configure now aborts
if the compiler produces a hard error on K&R-style C.
In addition, aborts of configure are now consistent, and remove
any temporary files.
|
|
977e1080
|
2012-06-09T19:47:55
|
|
Delete "--version" file if created by "ar --version" [Richard G.].
|
|
148b8f63
|
2012-06-09T22:58:06
|
|
Cleaner check for whether libtool is Apple or not on Darwin.
|
|
a72bcd56
|
2012-06-09T19:15:36
|
|
On Darwin, only use /usr/bin/libtool if libtool is not Apple.
The original change was to always use /usr/bin/libtool on Darwin,
in order to avoid using a GNU libtool installed by the user in the
path ahead of Apple's libtool. However someone might install a
more recent Apple libtool ahead of /usr/bin/libtool. This commit
checks to see if libtool is Apple, and uses /usr/bin/libtool if it
isn't.
|
|
f947435b
|
2012-06-03T16:28:06
|
|
Use _snprintf for snprintf under Microsoft C in test/minigzip.c.
|
|
25e4a3da
|
2012-06-03T12:45:55
|
|
Use _snprintf for snprinf in Microsoft C.
More than a decade later, Microsoft C does not support the C99
standard. It's good that _snprintf has a different name, since it
does not guarantee that the result is null terminated, as does
snprintf. However where _snprintf is used under Microsoft C, the
destination string is assured to be long enough, so this will not
be a problem. This occurs in two places, both in gzlib.c. Where
sprintf functionality is needed by gzprintf, vsnprintf is used in
the case of Microsoft C.
|
|
ee026acc
|
2012-06-02T10:16:43
|
|
Correct comment in deflate.h.
|
|
dca9e1d6
|
2012-05-26T10:37:17
|
|
Add inflateGetDictionary() function.
|
|
eb90f6a5
|
2012-05-22T22:31:19
|
|
Fix bug in 'F' mode for gzopen().
|
|
0a2c92bc
|
2012-05-20T11:32:13
|
|
Eliminate use of mktemp in Makefile (not always available).
|
|
6a181356
|
2012-05-17T21:13:23
|
|
Fix gzgetc undefine when Z_PREFIX set [Turk].
|
|
3a8e3bd9
|
2012-05-03T21:23:45
|
|
Avoid including stddef.h on Windows for Z_SOLO compile [Niessink].
|
|
c58f7ab2
|
2012-05-02T23:18:38
|
|
Replace use of unsafe string functions with snprintf if available.
This avoids warnings in OpenBSD that apparently can't be turned
off whenever you link strcpy, strcat, or sprintf. When snprintf
isn't available, the use of the "unsafe" string functions has
always in fact been safe, since the lengths are all checked before
those functions are called.
We do not use strlcpy or strlcat, since they are not (yet) found on
all systems. snprintf on the other hand is part of the C standard
library and is very common.
|
|
2689b3cc
|
2012-05-02T22:38:26
|
|
Change version number to 1.2.7.1.
|
|
30a1c706
|
2012-05-02T20:32:41
|
|
zlib 1.2.7
|
|
1b09651f
|
2012-05-02T20:17:59
|
|
Add instructions to win32/Makefile.gcc for shared install [Torri].
|
|
dee3d4ae
|
2012-05-01T21:17:08
|
|
Force the native libtool in Mac OS X to avoid GNU libtool [Beebe].
|
|
4373bac3
|
2012-04-03T09:26:07
|
|
Fix the path to zlib.map in CMakeLists.txt.
|
|
816e34e1
|
2012-04-29T21:15:12
|
|
Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler].
|
|
dbcdbf8c
|
2012-04-29T18:23:46
|
|
Fix location of executable for finding a four-byte integer.
|
|
6c9bd474
|
2012-04-29T16:18:12
|
|
Fix type mismatch between get_crc_table() and crc_table.
crc_table is made using a four-byte integer (when that can be
determined). However get_crc_table() returned a pointer to an
unsigned long, which could be eight bytes. This fixes that by
creating a new z_crc_t type for the crc_table.
This type is also used for the BYFOUR crc calculations that depend
on a four-byte type. The four-byte type can now be determined by
./configure, which also solves a problem where ./configure --solo
would never use BYFOUR. No the Z_U4 #define indicates that four-
byte integer was found either by ./configure or by zconf.h.
|
|
1be11790
|
2012-04-22T22:58:06
|
|
Avoid race condition for parallel make (-j) running example.
|
|
cc538ebf
|
2012-04-22T18:41:11
|
|
Remove -R. from Solaris shared build (possible security issue).
|
|
6635b789
|
2012-04-22T18:27:41
|
|
Update ./configure for Solaris, support --64 [Mooney].
|
|
3fb77ac0
|
2012-04-01T08:46:37
|
|
Add more comments to configure.
|
|
ba04838a
|
2012-03-26T20:18:13
|
|
Fix contrib/minizip compilation in the MinGW environment.
|
|
11f4065e
|
2012-03-22T18:22:01
|
|
Remove gzflags from zlibvc.def in vc9 and vc10.
|
|
a5d803b7
|
2012-03-18T14:52:31
|
|
Attempt to convert the wchar_t path in gzopen_w() for errors.
The conversion to multi-byte will be locale-specific, but it's
better than nothing and is only to provide more information in the
error message returned by gz_error(). The conversion has no
effect on what's opened.
|
|
04afd39f
|
2012-03-18T14:25:00
|
|
Fix syntax error in gzlib.c.
|
|
2bd5bd78
|
2012-03-18T13:21:24
|
|
Look in build directory for zlib.pc in CMakeLists.txt.
|
|
8e16df2c
|
2012-03-18T09:29:44
|
|
More fixes for gzopen_w().
Also need to #include <stddef.h> for zlib.h, and need to workaround
the inability to use wide characters in constructed error messages
with zlib's interface.
|
|
a1af6e96
|
2012-03-17T21:42:30
|
|
Fix gzopen_w() type and add #include for the type.
|
|
2c42538c
|
2012-03-17T19:57:44
|
|
Add source directory in CMakeLists.txt for building examples.
|
|
49b5d79a
|
2012-03-17T19:56:03
|
|
Rename zconf.h in CMakeLists.txt to move it out of the way.
|
|
dbe0bed7
|
2012-03-16T20:53:09
|
|
Add gzopen_w() in Windows for wide character path names.
|
|
a3881cc7
|
2012-03-14T23:14:13
|
|
Recognize clang as gcc.
|
|
da32fd28
|
2012-03-14T11:16:22
|
|
Improve inflate() documentation on the use of Z_FINISH.
|
|
50a1738f
|
2012-03-14T10:30:41
|
|
Make sure that unistd.h is included before using _LFS64_LARGEFILE.
|
|
b18595d4
|
2012-03-14T09:18:15
|
|
Repair some damage caused by -Wundef allowance.
|
|
cb1c1a36
|
2012-03-14T08:34:50
|
|
Avoid the use of the -u option with mktemp.
|
|
8dc21b17
|
2012-03-13T23:19:38
|
|
Allow the use of -Wundef when compiling or using zlib.
|
|
9c08a822
|
2012-03-12T22:21:24
|
|
Move obsolete emx makefile to old [Truta].
|
|
142f051f
|
2012-03-12T22:18:36
|
|
Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc [Truta].
|
|
39c7ed14
|
2012-03-12T17:31:58
|
|
If using cmake with MSVC, add the source directory to the includes.
modified: CMakeLists.txt
|
|
c1e84b25
|
2012-03-11T10:19:06
|
|
Include version symbols for cmake builds.
Add a version variable so it gets added to the pkg-config file.
|
|
cd71ef30
|
2012-03-11T10:17:57
|
|
Build both a static and a shared version of zlib with cmake.
|
|
ca6e7a0d
|
2012-03-11T10:17:16
|
|
Generate and install the pkg-config file with cmake.
|
|
f8867924
|
2012-03-11T10:15:31
|
|
Allow overriding the default install locations for cmake.
|
|
5d5befa4
|
2012-03-10T22:24:08
|
|
Update copyright years in gzlib.c.
|
|
e076ca8e
|
2012-03-10T09:58:37
|
|
Fix comments in win32/Makefile.gcc for proper usage.
|
|
e2abd78a
|
2012-03-10T09:54:08
|
|
Avoid warnings when O_CLOEXEC or O_EXCL are not defined.
|
|
9f4d9052
|
2012-03-09T01:29:46
|
|
Add DESTDIR support to mingw32 win32/Makefile.gcc.
|
|
2cd90d2b
|
2012-03-09T18:43:50
|
|
Add ability to choose the builder in make_vms.com [Schweda].
|
|
2e04ce09
|
2012-03-04T11:26:25
|
|
Make sure that O_EXCL is used portably.
|
|
e3ba2a10
|
2012-03-04T09:46:25
|
|
Fix contrib/vstudio project link errors [Mohanathas].
|
|
41a18e1d
|
2012-03-03T22:43:15
|
|
Fix bug in test/minigzip.c for configure --solo.
|
|
755c41dc
|
2012-03-03T10:24:44
|
|
Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen().
|
|
53bfe01c
|
2012-03-03T09:28:00
|
|
Fix bug in gzclose_w() when gzwrite() fails to allocate memory.
|
|
dab7531e
|
2012-03-03T00:20:00
|
|
Simplify test and use of gcc hidden attribute.
|
|
2547c6c8
|
2012-03-03T00:03:30
|
|
Don't use library or built-in byte swaps.
Using optimized byte swaps reduced portability for no real benefit,
since they are in parts of the code that represent a tiny fraction
of the execution time. So a simple definition of a byte swap is
now used.
|
|
513dfcc0
|
2012-03-02T23:50:17
|
|
Fix make_vms.com for VAX [Zinser].
|
|
05de38d1
|
2012-03-02T23:47:42
|
|
Cast to char * in gzprintf to avoid warnings [Zinser].
|
|
80f3e39e
|
2012-02-20T09:24:30
|
|
Avoid using __int64 for gcc or solo compilation.
|
|
3f4339b6
|
2012-02-19T23:31:55
|
|
Improve the detection of no hidden visibility attribute.
|
|
e6d2a847
|
2012-02-19T22:45:10
|
|
Do not use the visibility attribute if NO_VIZ defined.
|
|
8435052a
|
2012-02-19T22:36:40
|
|
Update version numbers and year in win32/README-WIN32.txt.
|
|
d63c8880
|
2012-02-18T23:11:49
|
|
Use __WATCOMC__ instead of __WATCOM__.
|