1. 12 10月, 2016 1 次提交
  2. 21 9月, 2016 1 次提交
    • M
      Add option to not compute or check check values. · 9852c209
      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.
      9852c209
  3. 27 11月, 2015 1 次提交
    • M
      Fix bug that accepted invalid zlib header when windowBits is zero. · 6cef1de7
      Mark Adler 提交于
      When windowBits is zero, the size of the sliding window comes from
      the zlib header.  The allowed values of the four-bit field are
      0..7, but when windowBits is zero, values greater than 7 are
      permitted and acted upon, resulting in large, mostly unused memory
      allocations.  This fix rejects such invalid zlib headers.
      6cef1de7
  4. 06 9月, 2015 2 次提交
  5. 29 7月, 2015 1 次提交
    • M
      Fix inflateInit2() bug when windowBits is 16 or 32. · 0db8fd37
      Mark Adler 提交于
      A windowBits value of 0, 16, or 32 gets the window bits from the
      zlib header.  However there is no zlib header for 16, or for 32
      when the input is gzip.  This commit sets the window bits for
      inflate to 15 if a gzip stream is detected and windowBits was 16
      or 32.
      0db8fd37
  6. 27 1月, 2015 1 次提交
  7. 29 12月, 2014 1 次提交
  8. 13 8月, 2012 1 次提交
    • M
      Clean up the usage of z_const and respect const usage within zlib. · 62d6112a
      Mark Adler 提交于
      This patch allows zlib to compile cleanly with the -Wcast-qual gcc
      warning enabled, but only if ZLIB_CONST is defined, which adds
      const to next_in and msg in z_stream and in the in_func prototype.
      A --const option is added to ./configure which adds -DZLIB_CONST
      to the compile flags, and adds -Wcast-qual to the compile flags
      when ZLIBGCCWARN is set in the environment.
      62d6112a
  9. 27 5月, 2012 1 次提交
  10. 13 2月, 2012 1 次提交
  11. 11 2月, 2012 1 次提交
  12. 30 1月, 2012 1 次提交
  13. 19 12月, 2011 1 次提交
  14. 11 12月, 2011 2 次提交
  15. 08 12月, 2011 1 次提交
    • M
      Enable dictionary setting in middle of stream, and keeping the dictionary. · afe7cf78
      Mark Adler 提交于
      This patch adds the deflateResetKeep() function to retain the sliding
      window for the next deflate operation, and fixes an inflateResetKeep()
      problem that came from inflate() not updating the window when the
      stream completed.  This enables constructing and decompressing a series
      of concatenated deflate streams where each can depend on the history of
      uncompressed data that precedes it.
      
      This generalizes deflateSetDictionary() and inflateSetDictionary() to
      permit setting the dictionary in the middle of a stream for raw deflate
      and inflate.  This in combination with the Keep functions enables a
      scheme for updating files block by block with the transmission of
      compressed data, where blocks are sent with deflateResetKeep() to
      retain history for better compression, and deflateSetDictionary() is
      used for blocks already present at the receiver to skip compression but
      insert that data in the history, again for better compression.  The
      corresponding inflate calls are done on the receiver side.
      afe7cf78
  16. 28 11月, 2011 1 次提交
  17. 10 10月, 2011 1 次提交
  18. 08 10月, 2011 1 次提交
    • M
      Add undocumented inflateResetKeep() function for CAB file decoding. · 77b47d55
      Mark Adler 提交于
      The Microsoft CAB file format compresses each block with completed
      deflate streams that depend on the sliding window history of the
      previous block in order to decode.  inflateResetKeep() does what
      inflateReset() does, except the sliding window history from the
      previous inflate operation is retained.
      77b47d55
  19. 07 10月, 2011 1 次提交
    • M
      Add a ./config --solo option to make zlib subset with no libary use · f442c1e8
      Mark Adler 提交于
      A common request has been the ability to compile zlib to require no
      other libraries.  This --solo option provides that ability.  The price
      is that the gz*, compress*, and uncompress functions are eliminated,
      and that the user must provide memory allocation and free routines to
      deflate and inflate when initializing.
      f442c1e8
  20. 06 10月, 2011 1 次提交
  21. 10 9月, 2011 18 次提交