1. 24 2月, 2013 2 次提交
  2. 19 2月, 2013 1 次提交
    • M
      Fix serious but very rare decompression bug in inftrees.c. · 51370f36
      Mark Adler 提交于
      inftrees.c compared the number of used table entries to the maximum
      allowed value using >= instead of >.  This patch fixes those to use
      >.  The bug was discovered by Ignat Kolesnichenko of Yandex LC
      where they have run petabytes of data through zlib.  Triggering the
      bug is apparently very rare, seeing as how it has been out there in
      the wild for almost three years before being discovered.  The bug
      is instantiated only if the exact maximum number of decoding table
      entries, ENOUGH_DISTS or ENOUGH_LENS is used by the block being
      decoded, resulting in the false positive of overflowing the table.
      51370f36
  3. 22 1月, 2013 1 次提交
  4. 25 10月, 2012 2 次提交
  5. 12 10月, 2012 1 次提交
  6. 02 10月, 2012 1 次提交
  7. 30 9月, 2012 2 次提交
  8. 25 8月, 2012 1 次提交
    • M
      Fix unintialized value bug in gzputc() introduced by const patches. · aa566e86
      Mark Adler 提交于
      Avoid the use of an uninitialized value when the write buffers have
      not been initialized.  A recent change to avoid the use of strm->
      next_in in order to resolve some const conflicts added the use of
      state->in in its place.  This patch avoids the use of state->in
      when it is not initialized.  Nothing bad would actually happen,
      since two variables set to the same unintialized value are
      subtracted.  However valgrind was rightly complaining.  So this
      fixes that.
      aa566e86
  9. 19 8月, 2012 2 次提交
  10. 14 8月, 2012 3 次提交
  11. 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
  12. 09 7月, 2012 3 次提交
  13. 07 7月, 2012 2 次提交
  14. 10 6月, 2012 4 次提交
  15. 04 6月, 2012 2 次提交
    • M
      f947435b
    • M
      Use _snprintf for snprinf in Microsoft C. · 25e4a3da
      Mark Adler 提交于
      More than a decade later, Microsoft C does not support the C99
      standard.  It's good that _snprintf has a different name, since it
      does not guarantee that the result is null terminated, as does
      snprintf.  However where _snprintf is used under Microsoft C, the
      destination string is assured to be long enough, so this will not
      be a problem.  This occurs in two places, both in gzlib.c.  Where
      sprintf functionality is needed by gzprintf, vsnprintf is used in
      the case of Microsoft C.
      25e4a3da
  16. 03 6月, 2012 1 次提交
  17. 27 5月, 2012 1 次提交
  18. 23 5月, 2012 1 次提交
  19. 21 5月, 2012 1 次提交
  20. 18 5月, 2012 1 次提交
  21. 04 5月, 2012 1 次提交
  22. 03 5月, 2012 4 次提交
  23. 02 5月, 2012 1 次提交
  24. 30 4月, 2012 1 次提交