Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix bug in block type selection when Z_FIXED used. | Mark Adler | 2022-10-03 | 1 | -6/+5 |
| | | | | | A fixed block could be chosen when a stored block was smaller. Now the smaller of the two is always chosen. | ||||
* | Avoid conversion warning in minigzip.c. | Mark Adler | 2022-10-01 | 1 | -1/+1 |
| | |||||
* | Fix typo in contrib readme. | Mark Adler | 2022-08-28 | 1 | -1/+1 |
| | |||||
* | Fix some typos. | Mark Adler | 2022-08-23 | 19 | -35/+35 |
| | | | | No code changes. | ||||
* | Fix extra field processing bug that dereferences NULL state->head. | Mark Adler | 2022-08-08 | 1 | -2/+2 |
| | | | | | The recent commit to fix a gzip header extra field processing bug introduced the new bug fixed here. | ||||
* | Add -g when debugging with -fsanitize=address to include symbols. | Mark Adler | 2022-07-31 | 1 | -1/+1 |
| | |||||
* | Fix a bug when getting a gzip header extra field with inflate(). | Mark Adler | 2022-07-30 | 1 | -2/+3 |
| | | | | | | | | If the extra field was larger than the space the user provided with inflateGetHeader(), and if multiple calls of inflate() delivered the extra header data, then there could be a buffer overflow of the provided space. This commit assures that provided space is not exceeded. | ||||
* | Have infback() deliver all of the available output up to any error. | Mark Adler | 2022-07-24 | 1 | -7/+9 |
| | |||||
* | Fix inflateBack to detect invalid input with distances too far. | Mark Adler | 2022-06-27 | 1 | -0/+1 |
| | |||||
* | Fix odd error in Visual C compiler preventing automatic promotion. | Mark Adler | 2022-06-04 | 1 | -2/+2 |
| | |||||
* | Fix missing ZEXPORT for crc32_combine_op(). | Mark Adler | 2022-06-04 | 1 | -1/+1 |
| | |||||
* | Have build test report library version if it doesn't match zlib.h. | Mark Adler | 2022-05-26 | 1 | -1/+2 |
| | |||||
* | Correct incorrect inputs provided to the CRC functions. | Mark Adler | 2022-03-30 | 1 | -4/+4 |
| | | | | | | | The previous releases of zlib were not sensitive to incorrect CRC inputs with bits set above the low 32. This commit restores that behavior, so that applications with such bugs will continue to operate as before. | ||||
* | Fix compile with Windows 10 SDK. (gvollant) | Mark Adler | 2022-03-28 | 1 | -0/+5 |
| | |||||
* | Fix configure issue that discarded provided CC definition. | Mark Adler | 2022-03-28 | 1 | -0/+3 |
| | |||||
* | Silence some warnings from Visual Studio C. | Mark Adler | 2022-03-28 | 2 | -5/+5 |
| | |||||
* | Change version number on develop branch to 1.2.12.1. | Mark Adler | 2022-03-27 | 24 | -48/+51 |
| | |||||
* | zlib 1.2.12v1.2.12 | Mark Adler | 2022-03-27 | 43 | -124/+218 |
| | |||||
* | Fix crc32.c to compile local functions only if used. | Mark Adler | 2022-03-27 | 1 | -62/+64 |
| | |||||
* | Check for cc masquerading as gcc or clang in configure. | Mark Adler | 2022-03-27 | 1 | -2/+8 |
| | |||||
* | Remove destructive aspects of make distclean. | Mark Adler | 2022-03-27 | 1 | -3/+1 |
| | |||||
* | Separate out address sanitizing from warnings in configure. | Mark Adler | 2022-03-27 | 1 | -2/+7 |
| | |||||
* | Eliminate use of ULL constants. | Mark Adler | 2022-03-27 | 1 | -3/+3 |
| | | | | | | 0xffffffffffffffffULL was causing warnings for C99 usage. The suffix for the constant is not necessary anyway, so this commit removes them. | ||||
* | Add fallthrough comments for gcc. | Mark Adler | 2022-03-27 | 2 | -0/+24 |
| | | | | Note intentional switch case fall throughs to avoid gcc warnings. | ||||
* | Clean up minizip to reduce warnings for testing. | Mark Adler | 2022-01-01 | 9 | -87/+96 |
| | | | | Also fix Makefile test target and permit added compile options. | ||||
* | Fix unztell64() in minizip to work past 4GB. (Daniël Hörchner) | Mark Adler | 2022-01-01 | 1 | -0/+3 |
| | | | | | | | | | | | | The issue is that unztell64() does not return the correct value if the position in the current file (in the ZIP archive) is beyond 4 GB. The cause is that unzReadCurrentFile() does not account for pfile_in_zip_read_info->stream.total_out at line 1854 of unzip.c wrapping around (it is a 32-bit variable). So, on line 1860 uTotalOutAfter can be *less* than uTotalOutBefore, propagating the wraparound to uOutThis, which in turn is added to pfile_in_zip_read_info->total_out_64. That has the effect of subtracting 4 GB. | ||||
* | minizip warning fix if MAXU32 already defined. (gvollant) | Mark Adler | 2021-12-31 | 1 | -3/+5 |
| | |||||
* | Replace black/white with allow/block. (theresa-m) | Mark Adler | 2021-12-31 | 2 | -15/+15 |
| | |||||
* | Fix indentation in minizip's zip.c. | Mark Adler | 2021-07-08 | 1 | -2/+2 |
| | |||||
* | Improve portability of contrib/minizip. | Mark Adler | 2021-02-10 | 4 | -10/+21 |
| | |||||
* | Correct typo in blast.c. | Mark Adler | 2021-01-17 | 1 | -1/+1 |
| | |||||
* | Change macro name in inflate.c to avoid collision in VxWorks. | Mark Adler | 2020-09-17 | 1 | -4/+4 |
| | |||||
* | Clarify gz* function interfaces, referring to parameter names. | Mark Adler | 2020-08-31 | 1 | -77/+76 |
| | |||||
* | Fix error in comment on the polynomial representation of a byte. | Mark Adler | 2019-07-09 | 1 | -1/+1 |
| | |||||
* | Fix memory leak on error in gzlog.c. | Mark Adler | 2019-05-25 | 1 | -2/+4 |
| | | | | Thank you Adam Richter. | ||||
* | Avoid adding empty gzip member after gzflush with Z_FINISH. | Mark Adler | 2019-04-13 | 3 | -1/+13 |
| | |||||
* | Explicitly note that the 32-bit check values are 32 bits. | Mark Adler | 2019-04-05 | 1 | -5/+7 |
| | |||||
* | Use ARM crc32 instructions if the ARM architecture has them. | Mark Adler | 2019-02-17 | 1 | -3/+7 |
| | | | | | | | The ARM crc32 instructions will be used only if an architecture is explicitly specified at compile time that has those instructions. For example, -march=armv8.1-a or -march=armv8-a+crc, or if the machine being compiled on has the instructions, -march=native. | ||||
* | Add use of the ARMv8 crc32 instructions when requested. | Mark Adler | 2019-02-17 | 1 | -0/+114 |
| | | | | | | | | | | Define the macro Z_ARM_CRC32 at compile time to use the ARMv8 (aarch64) crc32x and crc32b instructions. This code does not check for the presence of the crc32 instructions. Those instructions are optional for ARMv8.0, though mandatory for ARMv8.1 and later. The use of the crc32 instructions is about ten times as fast as the software braided calculation of the CRC-32. This can noticeably speed up the decompression of gzip streams. | ||||
* | Correct comment in crc32.c. | Mark Adler | 2019-02-03 | 1 | -1/+2 |
| | |||||
* | Don't bother computing check value after successful inflateSync(). | Mark Adler | 2019-01-02 | 3 | -8/+14 |
| | | | | | | | | | | | inflateSync() is used to skip invalid deflate data, which means that the check value that was being computed is no longer useful. This commit turns off the check value computation, and furthermore allows a successful return if the compressed data terminated in a graceful manner. This commit also fixes a bug in the case that inflateSync() is used before a header is ever processed. In that case, there is no knowledge of a trailer, so the remainder is treated as raw. | ||||
* | Use atomic test and set, if available, for dynamic CRC tables. | Mark Adler | 2018-12-26 | 1 | -42/+112 |
| | |||||
* | Speed up software CRC-32 computation by a factor of 1.5 to 3. | Mark Adler | 2018-12-26 | 6 | -1096/+10209 |
| | | | | | | | | Use the interleaved method of Kadatch and Jenkins in order to make use of pipelined instructions through multiple ALUs in a single core. This also speeds up and simplifies the combination of CRCs, and updates the functions to pre-calculate and use an operator for CRC combination. | ||||
* | Add crc32_combine_gen() and crc32_combine_op() for fast combines. | Mark Adler | 2018-11-04 | 2 | -0/+97 |
| | | | | | | When the same len2 is used repeatedly, it is faster to use crc32_combine_gen() to generate an operator, that is then used to combine CRCs with crc32_combine_op(). | ||||
* | Add tables for crc32_combine(), to speed it up by a factor of 200. | Mark Adler | 2018-11-03 | 2 | -92/+396 |
| | |||||
* | Fix the zran.c example to work on a multiple-member gzip file. | Mark Adler | 2018-10-14 | 3 | -93/+204 |
| | |||||
* | Add gznorm.c example, which normalizes gzip files. | Mark Adler | 2018-10-07 | 2 | -0/+474 |
| | |||||
* | Show all the codes for the maximum tables size in enough.c. | Mark Adler | 2018-08-05 | 1 | -160/+191 |
| | |||||
* | Clarify that prefix codes are counted in enough.c. | Mark Adler | 2018-08-05 | 1 | -15/+15 |
| | | | | | | | | There is no assurance that all prefix codes are reachable as optimal Huffman codes for the numbers of symbols encountered in a deflate block. This code considers all possible prefix codes, which might be a larger set than all possible Huffman codes, depending on the constraints. | ||||
* | Use inline function instead of macro for index in enough.c. | Mark Adler | 2018-08-05 | 1 | -4/+8 |
| |