summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* zlib 1.2.10v1.2.10Mark Adler2017-01-0225-54/+58
|
* Fix compilation with --solo and --debug combined.Mark Adler2017-01-021-1/+1
| | | | | However this ends up not really being solo, since it has to include external libraries.
* Add warnings when compiling with assembler code.Mark Adler2017-01-022-1/+4
| | | | | | | There have been many reports of bugs in the assembler codes intended to speed up deflate and inflate. They are third-party contributions in contrib, and so are not supported by the zlib maintainers.
* Remove files to be installed before copying them in Makefile.in.Mark Adler2017-01-021-0/+5
|
* Fix bug in gzwrite.c that produced corrupt gzip files.Mark Adler2017-01-021-0/+1
|
* Fix bug in deflate_stored() for zero-length input.Mark Adler2017-01-021-18/+19
|
* Minor edits and clarifications of comments.Mark Adler2017-01-011-7/+8
|
* Avoid warnings on snprintf() return value.Mark Adler2017-01-011-4/+4
|
* Change version number to zlib 1.2.9.1.Mark Adler2017-01-0125-62/+65
|
* Fix some stray 1.2.8.1 version numbers.Mark Adler2017-01-012-4/+4
|
* zlib 1.2.9v1.2.9Mark Adler2016-12-3155-580/+777
|
* Update Visual Studio project files (AraHaan).Mark Adler2016-12-3131-13/+5706
|
* Add crc32_z() and adler32_z() functions with size_t lengths.Mark Adler2016-12-313-8/+38
|
* Make z_size_t unsigned long for non-standard C.Mark Adler2016-12-313-9/+21
| | | | Also declare z_size_t when compiling solo.
* Avoid the need for ssize_t.Mark Adler2016-12-316-67/+19
| | | | | | | | Limit read() and write() requests to sizes that fit in an int. This allows storing the return value in an int, and avoiding the need to use or construct an ssize_t type. This is required for Microsoft C, whose _read and _write functions take an unsigned request and return an int.
* Use a uniform approach for the largest value of an unsigned type.Mark Adler2016-12-313-3/+3
|
* Use intptr_t for z_ssize_t on MSVC.Mark Adler2016-12-303-3/+18
|
* Avoid some random compiler warnings on various platforms.Mark Adler2016-12-306-12/+14
|
* Allow minigzip to compile when testing with ./configure --solo.Mark Adler2016-12-301-1/+1
|
* Replace as400 with os400 for OS/400 support (Monnerat).Mark Adler2016-12-307-444/+518
|
* Detect clang in cc version.Mark Adler2016-12-301-0/+1
|
* Fix init macros to use z_ prefix when requested.Mark Adler2016-12-304-16/+47
|
* Fix character encoding and link in contrib README.Mark Adler2016-12-301-2/+2
|
* Use snprintf() for later versions of Microsoft C.Mark Adler2016-12-302-5/+4
|
* Add deflateGetDictionary() function.Mark Adler2016-12-302-0/+43
| | | | | Per request, but its utility is likely to be very limited. See the comments in zlib.h.
* No need to check for NULL argument to free().Mark Adler2016-12-301-4/+2
|
* Add gzfwrite(), duplicating the interface of fwrite().Mark Adler2016-12-042-40/+112
|
* Add gzfread(), duplicating the interface of fread().Mark Adler2016-12-042-40/+126
|
* Fix compile option for when z_size_t needs to be a long long.Mark Adler2016-12-044-1/+7
|
* Create z_size_t and z_ssize_t types.Mark Adler2016-12-048-17/+144
| | | | | | 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.
* Don't need to emit an empty fixed block when changing parameters.Mark Adler2016-12-041-1/+1
| | | | | | 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.
* Clean up gz* function return values.Mark Adler2016-12-043-34/+37
| | | | | | | 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.
* Speed up deflation for level 0 (storing).Mark Adler2016-12-041-78/+215
| | | | | | | | | | | | | | | | | | 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.
* Assure that deflateParams() will not switch functions mid-block.Mark Adler2016-12-042-22/+24
| | | | | | | 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.
* Explicitly ignore a return value in gzwrite.c.Mark Adler2016-12-041-1/+1
|
* Increase verbosity required to warn about bit length overflow.Mark Adler2016-12-041-2/+2
| | | | | | | 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.
* Add uncompress2() function, which returns the input size used.Mark Adler2016-12-042-18/+39
|
* Minor edits to the documentation in source file contents.Mark Adler2016-12-044-93/+109
|
* Fix bugs in creating a very large gzip header.Mark Adler2016-12-042-169/+191
|
* Add --debug (-d) option to ./configure to define ZLIB_DEBUG.Mark Adler2016-12-041-0/+6
|
* Use memcpy for stored blocks.Mark Adler2016-12-041-30/+7
| | | | | | | | | 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.
* Fix some typos.Mark Adler2016-10-3010-29/+29
|
* Fix bug when level 0 used with Z_HUFFMAN or Z_RLE.Mark Adler2016-10-271-3/+4
| | | | | | | | | | | 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.
* Clean up and comment the use of local for static.Mark Adler2016-10-264-6/+6
|
* Make a noble effort at setting OS_CODE correctly.Mark Adler2016-10-251-14/+30
| | | | | | | | 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.
* Do a more thorough check of the state for every stream call.Mark Adler2016-10-243-41/+72
| | | | | | 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.
* Document the rejection of 256-byte window requests in zlib.h.Mark Adler2016-10-241-0/+4
|
* Reject a window size of 256 bytes if not using the zlib wrapper.Mark Adler2016-10-241-1/+1
| | | | | | | | | | | | 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.
* Avoid obfuscating use of default case in inftrees.c.Mark Adler2016-10-141-1/+1
|
* Move macro definition in deflate.c to where it is used.Mark Adler2016-10-141-3/+4
| | | | This avoid defining a macro that is never used when not debugging.