Log

Author Commit Date CI Message
Mark Adler dd5d0940 2013-03-22T17:38:37 Add vc11 and vc12 build files to contrib/vstudio.
Mark Adler a2d71e8e 2013-02-24T00:16:24 Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.
Like Ma 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.
E. Timothy Uy 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
Fredrik Orderud 79a7058b 2012-12-11T21:44:56 Simplify contrib/vstudio/vc10 with 'd' suffix.
takacsd 63ba7582 2012-11-30T19:43:50 Fix types in contrib/minizip to match result of get_crc_table().
Jason Williams 00dfee0b 2012-11-27T07:27:06 Fix casting error in contrib/testzlib/testzlib.c.
Will Glynn 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.
Will Glynn 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.
Greg Domjan b116fb58 2012-09-14T16:48:12 Add contrib/vstudio/vc10 pre-build step for static only. Also correct typo for 64-bit debug build.
Mark Adler 5afbdaba 2013-02-23T20:56:23 Add _tr_flush_bits to the external symbols prefixed by --zprefix.
Mark Adler d211ecdf 2013-02-23T20:27:13 Use underscored I/O function names for WINAPI_FAMILY. Suggested by E. Timothy Uy.
Mark Adler 931aa25a 2013-02-23T20:12:20 Update inflateBack() comments, since inflate() can be faster.
Mark Adler 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.
Mark Adler 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.
Mark Adler b6c5057c 2012-10-24T22:50:23 Fix comparisons of differently signed integers in contrib/blast.
Mark Adler b8522e02 2012-10-24T22:47:37 Add note to contrib/blast to use binary mode in stdio.
Mark Adler e69a9cee 2012-10-11T16:10:59 Check for input buffer malloc failure in examples/gzappend.c.
Mark Adler 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.
Mark Adler 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.
Mark Adler bd143f1c 2012-09-29T21:48:18 Fix memory allocation error in examples/zran.c [Nor].
Mark Adler 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.
Mark Adler 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.
Mark Adler 3d9df6ec 2012-08-14T00:31:23 Clean up examples/gzlog.[ch] comparisons of different types.
Mark Adler a2981775 2012-08-14T00:30:44 Clean up examples/gzjoin.c for z_const usage.
Mark Adler aa210a1b 2012-08-14T00:29:58 Fix example/gzappend.c for proper z_const usage.
Mark Adler 360c3e95 2012-08-13T21:49:10 Update examples/gun.c for proper z_const usage.
Mark Adler 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.
Mark Adler fb4e0599 2012-07-08T17:01:13 Fix argument checks in gzlog_compress() and gzlog_write().
Mark Adler aef4174d 2012-07-08T16:48:36 Remove unused variable in infback9.c.
Birunthan Mohanathas f51cc49c 2012-06-06T20:30:39 Fix comment typos in unzip.h and unzip.c.
Thomas Roß d0c73312 2012-06-07T01:25:36 Update copyright year in win32/zlib1.rc.
Thomas Roß 486ef7b4 2012-06-07T01:23:32 Fix CMake compilation of static lib for MSVC2010 x64.
Mark Adler 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.
Mark Adler 977e1080 2012-06-09T19:47:55 Delete "--version" file if created by "ar --version" [Richard G.].
Mark Adler 148b8f63 2012-06-09T22:58:06 Cleaner check for whether libtool is Apple or not on Darwin.
Mark Adler 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.
Mark Adler f947435b 2012-06-03T16:28:06 Use _snprintf for snprintf under Microsoft C in test/minigzip.c.
Mark Adler 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.
Mark Adler ee026acc 2012-06-02T10:16:43 Correct comment in deflate.h.
Mark Adler dca9e1d6 2012-05-26T10:37:17 Add inflateGetDictionary() function.
Mark Adler eb90f6a5 2012-05-22T22:31:19 Fix bug in 'F' mode for gzopen().
Mark Adler 0a2c92bc 2012-05-20T11:32:13 Eliminate use of mktemp in Makefile (not always available).
Mark Adler 6a181356 2012-05-17T21:13:23 Fix gzgetc undefine when Z_PREFIX set [Turk].
Mark Adler 3a8e3bd9 2012-05-03T21:23:45 Avoid including stddef.h on Windows for Z_SOLO compile [Niessink].
Mark Adler 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.
Mark Adler 2689b3cc 2012-05-02T22:38:26 Change version number to 1.2.7.1.
Mark Adler 30a1c706 2012-05-02T20:32:41 zlib 1.2.7
Mark Adler 1b09651f 2012-05-02T20:17:59 Add instructions to win32/Makefile.gcc for shared install [Torri].
Mark Adler dee3d4ae 2012-05-01T21:17:08 Force the native libtool in Mac OS X to avoid GNU libtool [Beebe].
Daniel Snider 4373bac3 2012-04-03T09:26:07 Fix the path to zlib.map in CMakeLists.txt.
Mark Adler 816e34e1 2012-04-29T21:15:12 Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler].
Mark Adler dbcdbf8c 2012-04-29T18:23:46 Fix location of executable for finding a four-byte integer.
Mark Adler 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.
Mark Adler 1be11790 2012-04-22T22:58:06 Avoid race condition for parallel make (-j) running example.
Mark Adler cc538ebf 2012-04-22T18:41:11 Remove -R. from Solaris shared build (possible security issue).
Mark Adler 6635b789 2012-04-22T18:27:41 Update ./configure for Solaris, support --64 [Mooney].
Mark Adler 3fb77ac0 2012-04-01T08:46:37 Add more comments to configure.
jK ba04838a 2012-03-26T20:18:13 Fix contrib/minizip compilation in the MinGW environment.
Birunthan Mohanathas 11f4065e 2012-03-22T18:22:01 Remove gzflags from zlibvc.def in vc9 and vc10.
Mark Adler 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.
Mark Adler 04afd39f 2012-03-18T14:25:00 Fix syntax error in gzlib.c.
Peter Kuemmel 2bd5bd78 2012-03-18T13:21:24 Look in build directory for zlib.pc in CMakeLists.txt.
Mark Adler 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.
Mark Adler a1af6e96 2012-03-17T21:42:30 Fix gzopen_w() type and add #include for the type.
Peter Kuemmel 2c42538c 2012-03-17T19:57:44 Add source directory in CMakeLists.txt for building examples.
Peter Kuemmel 49b5d79a 2012-03-17T19:56:03 Rename zconf.h in CMakeLists.txt to move it out of the way.
Mark Adler dbe0bed7 2012-03-16T20:53:09 Add gzopen_w() in Windows for wide character path names.
Mark Adler a3881cc7 2012-03-14T23:14:13 Recognize clang as gcc.
Mark Adler da32fd28 2012-03-14T11:16:22 Improve inflate() documentation on the use of Z_FINISH.
Mark Adler 50a1738f 2012-03-14T10:30:41 Make sure that unistd.h is included before using _LFS64_LARGEFILE.
Mark Adler b18595d4 2012-03-14T09:18:15 Repair some damage caused by -Wundef allowance.
Mark Adler cb1c1a36 2012-03-14T08:34:50 Avoid the use of the -u option with mktemp.
Mark Adler 8dc21b17 2012-03-13T23:19:38 Allow the use of -Wundef when compiling or using zlib.
Mark Adler 9c08a822 2012-03-12T22:21:24 Move obsolete emx makefile to old [Truta].
Mark Adler 142f051f 2012-03-12T22:18:36 Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc [Truta].
Christoph J. Thompson 39c7ed14 2012-03-12T17:31:58 If using cmake with MSVC, add the source directory to the includes. modified: CMakeLists.txt
Christoph J. Thompson 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.
Christoph J. Thompson cd71ef30 2012-03-11T10:17:57 Build both a static and a shared version of zlib with cmake.
Christoph J. Thompson ca6e7a0d 2012-03-11T10:17:16 Generate and install the pkg-config file with cmake.
Christoph J. Thompson f8867924 2012-03-11T10:15:31 Allow overriding the default install locations for cmake.
Mark Adler 5d5befa4 2012-03-10T22:24:08 Update copyright years in gzlib.c.
Mark Adler e076ca8e 2012-03-10T09:58:37 Fix comments in win32/Makefile.gcc for proper usage.
Mark Adler e2abd78a 2012-03-10T09:54:08 Avoid warnings when O_CLOEXEC or O_EXCL are not defined.
Nathan Phillip Brink 9f4d9052 2012-03-09T01:29:46 Add DESTDIR support to mingw32 win32/Makefile.gcc.
Mark Adler 2cd90d2b 2012-03-09T18:43:50 Add ability to choose the builder in make_vms.com [Schweda].
Mark Adler 2e04ce09 2012-03-04T11:26:25 Make sure that O_EXCL is used portably.
Mark Adler e3ba2a10 2012-03-04T09:46:25 Fix contrib/vstudio project link errors [Mohanathas].
Mark Adler 41a18e1d 2012-03-03T22:43:15 Fix bug in test/minigzip.c for configure --solo.
Mark Adler 755c41dc 2012-03-03T10:24:44 Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen().
Mark Adler 53bfe01c 2012-03-03T09:28:00 Fix bug in gzclose_w() when gzwrite() fails to allocate memory.
Mark Adler dab7531e 2012-03-03T00:20:00 Simplify test and use of gcc hidden attribute.
Mark Adler 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.
Mark Adler 513dfcc0 2012-03-02T23:50:17 Fix make_vms.com for VAX [Zinser].
Mark Adler 05de38d1 2012-03-02T23:47:42 Cast to char * in gzprintf to avoid warnings [Zinser].
Mark Adler 80f3e39e 2012-02-20T09:24:30 Avoid using __int64 for gcc or solo compilation.
Mark Adler 3f4339b6 2012-02-19T23:31:55 Improve the detection of no hidden visibility attribute.
Mark Adler e6d2a847 2012-02-19T22:45:10 Do not use the visibility attribute if NO_VIZ defined.
Mark Adler 8435052a 2012-02-19T22:36:40 Update version numbers and year in win32/README-WIN32.txt.
Mark Adler d63c8880 2012-02-18T23:11:49 Use __WATCOMC__ instead of __WATCOM__.