- Apr 05, 2019
-
-
Mark Adler authored
-
- Dec 26, 2018
-
-
Mark Adler authored
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.
-
- Nov 04, 2018
-
-
Mark Adler authored
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().
-
- Jan 31, 2018
-
-
Mark Adler authored
-
- Jan 09, 2018
-
-
Mark Adler authored
-
- Oct 13, 2017
-
-
Mark Adler authored
-
- Feb 16, 2017
-
-
Mark Adler authored
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.
-
- Jan 16, 2017
-
-
Mark Adler authored
-
Mark Adler authored
-
- Jan 15, 2017
-
-
Mark Adler authored
This permits deflateParams to change the strategy and level right after deflateInit, without having to wait until a header has been written. The parameters can be changed immediately up until the first deflate call that consumes any input data.
-
Mark Adler authored
- Jan 03, 2017
-
- Jan 02, 2017
-
-
Mark Adler authored
-
Mark Adler authored
-
- Jan 01, 2017
-
-
Mark Adler authored
- Dec 31, 2016
-
-
Mark Adler authored
-
Mark Adler authored
Per request, but its utility is likely to be very limited. See the comments in zlib.h.
-
- Dec 05, 2016
-
-
Mark Adler authored
-
Mark Adler authored
-
- Dec 04, 2016
-
-
Mark Adler authored
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.
-
Mark Adler authored
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.
-
Mark Adler authored
-
Mark Adler authored
-
- Oct 30, 2016
-
-
Mark Adler authored
-
- Oct 24, 2016
-
-
Mark Adler authored
-
- Oct 14, 2016
-
-
Mark Adler authored
Recursive macro calls are normally caught by the preprocessor and avoided. This commit avoids the possibility of a problem entirely.
-
- Oct 12, 2016
-
-
Mark Adler authored
-
- Sep 22, 2016
-
-
Mark Adler authored
While woolly mammoths still roamed the Earth and before Atlantis sunk into the ocean, there were C compilers that could not handle forward structure references, e.g. "struct name;". zlib dutifully provided a work-around for such compilers. That work-around is no longer needed, and, per the recommendation of a security audit of the zlib code by Trail of Bits and TrustInSoft, in support of the Mozilla Foundation, should be removed since what a compiler will do with this is technically undefined. From the report: "there is no telling what interactions the bug could have in the future with link-time optimizations and type-based alias analyses, both features that are present (but not default) in clang."
-
- Sep 21, 2016
-
-
Mark Adler authored
The undocumented (except in these commit comments) function inflateValidate(strm, check) can be called after an inflateInit(), inflateInit2(), or inflateReset2() with check equal to zero to turn off the check value (CRC-32 or Adler-32) computation and comparison. Calling with check not equal to zero turns checking back on. This should only be called immediately after the init or reset function. inflateReset() does not change the state, so a previous inflateValidate() setting will remain in effect. This also turns off validation of the gzip header CRC when present. This should only be used when a zlib or gzip stream has already been checked, and repeated decompressions of the same stream no longer need to be validated.
-
- Sep 06, 2015
-
-
Mark Adler authored
-
- Aug 02, 2015
-
-
Mark Adler authored
This updates the documentation to reflect the behavior of deflateParams() when it is not able to compress all of the input data provided so far due to insufficient output space. It also assures that data provided is compressed before the parameter changes, even if at the beginning of the stream.
-
Mark Adler authored
-
- Jul 29, 2015
-
-
Mark Adler authored
It previously could have been misinterpreted to mean that parameter changes after deflateInit2() would be reversed, which is not the case.
-
Mark Adler authored
-
Mark Adler authored
-
- Jul 06, 2015
-
-
Mark Adler authored
-
- Apr 26, 2014
-
-
Mark Adler authored
-
- May 03, 2013
-
-
Mark Adler authored
-