1. 01 1月, 2017 1 次提交
  2. 22 9月, 2016 1 次提交
    • M
      Use post-increment only in inffast.c. · 9aaec95e
      Mark Adler 提交于
      An old inffast.c optimization turns out to not be optimal anymore
      with modern compilers, and furthermore was not compliant with the
      C standard, for which decrementing a pointer before its allocated
      memory is undefined. Per the recommendation of a security audit of
      the zlib code by Trail of Bits and TrustInSoft, in support of the
      Mozilla Foundation, this "optimization" was removed, in order to
      avoid the possibility of undefined behavior.
      9aaec95e
  3. 25 3月, 2013 2 次提交
  4. 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
  5. 10 9月, 2011 24 次提交