summaryrefslogtreecommitdiff
path: root/old (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-04-13Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc.Mark Adler5-17/+17
2013-04-13Change version number to 1.2.7.3.Mark Adler24-43/+46
2013-04-13zlib 1.2.7.2v1.2.7.2Mark Adler4-4/+6
2013-04-13Add casts in gzwrite.c for pointer differences.Mark Adler2-3/+4
2013-04-13Fix typo in win32/Makefile.msc.Mark Adler1-1/+1
2013-04-13Change check for a four-byte type back to hexadecimal.Mark Adler3-9/+9
2013-04-13Change version number to 1.2.7.2.Mark Adler24-48/+51
2013-03-24zlib 1.2.7.1v1.2.7.1Mark Adler16-20/+67
2013-03-24Line length cleanup.Mark Adler2-2/+3
2013-03-24Do not return Z_BUF_ERROR if deflateParam() has nothing to write.Mark Adler1-0/+2
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.
2013-03-24In Makefile uninstall, don't rm if preceding cd fails.Mark Adler1-4/+4
2013-03-24Minor spacing cleanup in a comment in gzguts.h.Mark Adler1-1/+1
2013-03-24Add man pages for minizip and miniunzip.Enrico Weigelt, metux IT service2-0/+109
2013-03-24Add casts and consts to ease user conversion to C++.Mark Adler6-16/+17
You would still need to run zlib2ansi on all of the *.c files.
2013-03-23Clean up the addition of gzvprintf.Mark Adler10-3/+13
2013-03-23Clean up the addition of inflateGetDictionary.Mark Adler5-3/+18
2013-03-23Remove runtime check in configure for four-byte integer type.Mark Adler4-59/+15
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.
2013-03-23Fix configure for Sun shell.Mark Adler1-1/+3
2013-03-22Add gzvprintf() as an undocumented function in zlib.Mark Adler5-7/+36
The function is only available if stdarg.h is available.
2013-03-22Add vc11 and vc12 build files to contrib/vstudio.Mark Adler16-0/+3335
2013-02-24Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.Mark Adler3-6/+6
2013-02-24Suport i686 and amd64 assembler builds in CMakeLists.txt.Like Ma1-2/+38
* Use -DASM686=1 to build with i686 asm. * Use -DAMD64=1 to build with amd64 asm.
2013-02-23Add TOP support to win32/Makefile.msc.E. Timothy Uy1-38/+41
Facilitate multi-platform compilation, e.g.: nmake -f pathto\zlib\win32\Makefile.msc TOP=pathto\zlib
2013-02-23Simplify contrib/vstudio/vc10 with 'd' suffix.Fredrik Orderud1-26/+2
2013-02-23Fix types in contrib/minizip to match result of get_crc_table().takacsd3-6/+6
2013-02-23Fix casting error in contrib/testzlib/testzlib.c.Jason Williams1-2/+2
2013-02-23Don't specify --version-script on Apple platforms in CMakeLists.txt.Will Glynn1-1/+3
Mac OS X's linker (derived from LLVM, not GNU binutils) does not support --version-script. Don't specify it on this platform.
2013-02-23Quote --version-script argument in CMakeLists.txt.Will Glynn1-1/+1
Previously, spaces in ${CMAKE_CURRENT_SOURCE_PATH} would expand into multiple linker arguments.
2013-02-23Add contrib/vstudio/vc10 pre-build step for static only.Greg Domjan2-1/+17
Also correct typo for 64-bit debug build.
2013-02-23Add _tr_flush_bits to the external symbols prefixed by --zprefix.Mark Adler3-0/+3
2013-02-23Use underscored I/O function names for WINAPI_FAMILY.Mark Adler1-0/+7
Suggested by E. Timothy Uy.
2013-02-23Update inflateBack() comments, since inflate() can be faster.Mark Adler1-5/+6
2013-02-18Fix serious but very rare decompression bug in inftrees.c.Mark Adler1-4/+4
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.
2013-01-21Check for invalid code length codes in contrib/puff.Mark Adler3-6/+9
Without this fix, it would be possible to construct inputs to puff that would cause it to segfault.
2012-10-24Fix comparisons of differently signed integers in contrib/blast.Mark Adler1-1/+2
2012-10-24Add note to contrib/blast to use binary mode in stdio.Mark Adler2-4/+9
2012-10-11Check for input buffer malloc failure in examples/gzappend.c.Mark Adler1-7/+10
2012-10-01Fix bug in gzclose() when gzwrite() runs out of memory.Mark Adler1-5/+6
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.
2012-09-29Fix bug where gzopen(), gzclose() would write an empty file.Mark Adler1-8/+7
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.
2012-09-29Fix memory allocation error in examples/zran.c [Nor].Mark Adler1-3/+8
2012-08-24Fix unintialized value bug in gzputc() introduced by const patches.Mark Adler1-8/+10
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.
2012-08-18Avoid shift equal to bits in type (caused endless loop).Mark Adler1-18/+21
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.
2012-08-18Clean up examples/gzlog.[ch] comparisons of different types.Mark Adler2-7/+9
2012-08-14Clean up examples/gzjoin.c for z_const usage.Mark Adler1-6/+7
2012-08-14Fix example/gzappend.c for proper z_const usage.Mark Adler1-4/+5
2012-08-13Update examples/gun.c for proper z_const usage.Mark Adler1-5/+6
2012-08-13Clean up the usage of z_const and respect const usage within zlib.Mark Adler16-70/+76
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.
2012-07-08Fix argument checks in gzlog_compress() and gzlog_write().Mark Adler2-7/+8
2012-07-08Remove unused variable in infback9.c.Mark Adler1-2/+0
2012-07-08Fix comment typos in unzip.h and unzip.c.Birunthan Mohanathas2-7/+7