summaryrefslogtreecommitdiff
path: root/zlib.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.3.2Mark Adler27 hours1-6/+6
|
* Fix the usage of types in deflate.c for when an int is 16 bits.Mark Adler9 days1-1/+4
| | | | Also clean up conversion warnings.
* Add _z versions of the compress and uncompress functions.Mark Adler2026-01-121-14/+23
| | | | Provide size_t arguments for Windows, on which a long is 32 bits.
* Add compressBound_z and deflateBound_z functions for large values.Mark Adler2026-01-051-2/+9
| | | | | | | These take and return size_t integers, instead of unsigned longs, for those platforms with 32-bit longs. This commit also assures that overflows of either integer type results in the maximum value for that type, instead of wrapping to small values.
* Prevent the use of insecure functions without an explicit request.Mark Adler2026-01-051-8/+18
| | | | | | | | | | | ZLIB_INSECURE must be defined in order to compile code that uses the insecure functions vsprintf() or sprintf(). This would occur only if the standard vsnprintf() or snprintf() functions are not available. Providing the --insecure option to ./configure will define ZLIB_INSECURE. A flag is added to zlibCompileFlags() to indicate that gzprintf() is not implemented due to the need for the use of an insecure function, but ZLIB_INSECURE was not defined.
* Check for negative lengths in crc32_combine functions.Mark Adler2026-01-051-2/+2
| | | | | Though zlib.h says that len2 must be non-negative, this avoids the possibility of an accidental infinite loop.
* zlib 1.3.1.2v1.3.1.2Mark Adler2025-12-081-5/+5
| | | | Interim version for an audit.
* Support non-blocking devices in the gz* routines.Mark Adler2025-12-081-15/+58
|
* Return all available uncompressed data on error in gzread.c.Mark Adler2025-12-061-8/+13
| | | | | | | The error is recorded, and will be detected by the application after all of the uncompressed data has been consumed and then one more call is made to read data. The error is available immediately from gzerror() if the application would like to know earlier.
* Update links to the RFCs.Mark Adler2025-12-061-1/+1
|
* Clarify the use of inflateGetHeader().Mark Adler2025-12-061-14/+16
|
* Add a "G" option to force gzip, disabling transparency in gzread().Mark Adler2025-12-061-1/+5
| | | | | If the input is not a gzip stream with this option, an error will be returned.
* Fix bug in inflatePrime() for 16-bit ints.Mark Adler2025-05-131-9/+19
| | | | | | Also elaborate on the inflatePrime() error return in zlib.h, and assure that data_type is correct after initialization and a Z_NEED_DICT return.
* Note the use of gzungetc() to run a deferred seek while reading.Mark Adler2025-05-131-0/+5
|
* Note that gzseek() requests are deferred until the next operation.Mark Adler2025-05-131-1/+2
|
* Clarify the use of errnum in gzerror().Mark Adler2025-02-251-3/+4
|
* Remove some unsightly spaces in zlib.h.Mark Adler2025-02-211-3/+3
|
* Use generated zconf.h in cmake build.Vollstrecker2025-02-181-1/+5
| | | | | This restores the inclusion of the local zconf.h (double quoted) in normal usage.
* Do not look for zconf.h in the source directory.Vollstrecker2025-02-131-1/+1
| | | | | Temporary patch for cmake, but too violent. A better solution will need to be found.
* Add deflateUsed() function to get the used bits in the last byte.Mark Adler2024-07-011-0/+12
| | | | | This returns the number of used bits in the last byte of a stream that has just been compressed with deflate.
* Correct typo in zlib.h comment.Mark Adler2024-05-161-5/+5
|
* Correct argument types for 64-bit combine functions.Mark Adler2024-02-111-3/+3
|
* Expand on the deflate strategy parameter in zlib.h.Mark Adler2024-02-071-12/+15
|
* Change version number on develop branch to 1.3.1.1.Mark Adler2024-01-221-4/+4
|
* zlib 1.3.1v1.3.1Mark Adler2024-01-221-6/+6
|
* Note that the len2 argument of crc_combine*() must be non-negative.Mark Adler2024-01-131-2/+2
| | | | If it is negative, then the code will enter an infinite loop.
* Correct repeated words in source file comments and a readme.Paul Ivanov2023-11-141-4/+4
|
* Change version number on develop branch to 1.3.0.1.Mark Adler2023-08-181-4/+4
|
* zlib 1.3v1.3Mark Adler2023-08-181-7/+7
|
* Clarify requirement in zlib.h to avoid multiple flush markers.Mark Adler2023-08-171-2/+2
|
* Document in zlib.h the initialization of stream fields by the InitMark Adler2023-07-101-3/+5
| | | | and Reset functions.
* Correct comment in zlib.h on os setting in gzip header.Mark Adler2023-05-161-2/+3
| | | | | | The comment said that the os is set to 255, when in fact it has been set to the current os since zlib 1.2.3. Or at least our best guess at the os made at compile time.
* Remove duplicate "the" in zlib.h.Paul Marquess2023-05-011-1/+1
|
* Remove K&R function definitions from zlib.Mark Adler2023-04-151-174/+174
| | | | | | | C2X has removed K&R definitions from the C function syntax. Though the standard has not yet been approved, some high-profile compilers are now issuing warnings when such definitions are encountered.
* Change version number on develop branch to 1.2.13.1.Mark Adler2022-10-151-4/+4
|
* zlib 1.2.13v1.2.13Mark Adler2022-10-121-5/+5
|
* Minor formatting improvements.Mark Adler2022-10-051-1/+1
| | | | No code changes.
* Fix some typos.Mark Adler2022-08-231-5/+5
| | | | No code changes.
* Change version number on develop branch to 1.2.12.1.Mark Adler2022-03-271-4/+4
|
* zlib 1.2.12v1.2.12Mark Adler2022-03-271-7/+7
|
* Clarify gz* function interfaces, referring to parameter names.Mark Adler2020-08-311-77/+76
|
* Explicitly note that the 32-bit check values are 32 bits.Mark Adler2019-04-051-5/+7
|
* Speed up software CRC-32 computation by a factor of 1.5 to 3.Mark Adler2018-12-261-12/+10
| | | | | | | | 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 Adler2018-11-041-0/+22
| | | | | | 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().
* Correct the initialization requirements for deflateInit2().Mark Adler2018-01-311-2/+1
|
* Emphasize the need to continue decompressing gzip members.Mark Adler2018-01-081-3/+5
|
* Make the names in functions declarations identical to definitions.Mark Adler2017-10-121-1/+1
|
* Permit a deflateParams() parameter change as soon as possible.Mark Adler2017-02-151-5/+6
| | | | | | | | | This commit allows a parameter change even if the input data has not all been compressed and copied to the application output buffer, so long as all of the input data has been compressed to the internal pending output buffer. This also allows an immediate deflateParams change so long as there have been no deflate calls since initialization or reset.
* Cygwin does not have _wopen(), so do not create gzopen_w() there.Mark Adler2017-01-161-1/+1
|
* Change version number to 1.2.11.1.Mark Adler2017-01-151-4/+4
|