summaryrefslogtreecommitdiff
path: root/inflate.h
AgeCommit message (Collapse)Author
2020-10-24Small formatting changes in inflate.c, inflate.h and inffast.cHans Kristian Rosbach
2020-08-31Rename ZLIB_INTERNAL to Z_INTERNAL for consistency.Nathan Moinvaziri
2020-06-28Only calculate inflate chunk size once and store it for future use for ↵Nathan Moinvaziri
performance.
2019-10-22Don't bother computing check value after successful inflateSync().Mark Adler
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.
2019-08-06Deduplicate inflate's fixedtables(), and no longer inline the inffixed tables.Hans Kristian Rosbach
This also reduces the library size by 4120bytes or ~2.9%.
2019-05-23Introduce inflate_ensure_window, make bi_reverse and flush_pending ZLIB_INTERNALIlya Leoshkevich
2018-01-31Adapt code to support PREFIX macros and update build scriptsMika Lindqvist
2017-02-09zlib 1.2.9Mark Adler
2017-02-01Do a more thorough check of the state for every stream call.Mark Adler
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.
2017-01-31Add option to not compute or check check values.Mark Adler
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.
2017-01-31Correct the size of the inflate state in the comments.Mark Adler
2015-12-14Type cleanup.Mika Lindqvist
2015-06-05Revert "Replace 'unsigned long' with most suitable fixed-size type."Hans Kristian Rosbach
This commit was cherry-picked and was not done, resulting in a few problems with gcc on 64bit windows. This reverts commit edd7a72e056b994458ff040d4740b16b35336b60. Conflicts: arch/x86/crc_folding.c arch/x86/fill_window_sse.c deflate.c deflate.h match.c trees.c
2015-05-25Style cleanup for inflate codeHans Kristian Rosbach
2015-05-23Replace 'unsigned long' with most suitable fixed-size type.Mika Lindqvist
2015-05-22Replace unsigned short with uint16_tHans Kristian Rosbach
Conflicts: inflate.h inftrees.c inftrees.h match.c
2014-10-09Remove FAR definitionhansr
Remove a few leftovers from the legacy OS support removal
2011-09-09zlib 1.2.3.5Mark Adler
2011-09-09zlib 1.2.3.4Mark Adler
2011-09-09zlib 1.2.3.3Mark Adler
2011-09-09zlib 1.2.3.1Mark Adler
2011-09-09zlib 1.2.2.2Mark Adler
2011-09-09zlib 1.2.2.1Mark Adler
2011-09-09zlib 1.2.0.5Mark Adler
2011-09-09zlib 1.2.0.4Mark Adler
2011-09-09zlib 1.2.0.2Mark Adler
2011-09-09zlib 1.2.0Mark Adler
2011-09-09zlib 0.79Mark Adler
2011-09-09zlib 0.71Mark Adler