Skip to content
Snippets Groups Projects
  1. Oct 13, 2017
  2. Jun 03, 2017
    • Mark Adler's avatar
      Avoid the use of ptrdiff_t. · 3c46f5dd
      Mark Adler authored
      This isn't the right type anyway to assure that it contains a
      pointer. That type would be intptr_t or uintptr_t. However the C99
      standard says that those types are optional, so their use would not
      be portable. This commit simply uses size_t or whatever configure
      decided to use for size_t. That would be the same length as
      ptrdiff_t, and so will work just as well. The code checks to see if
      the length of the type used is the same as the length of a void
      pointer, so there is already protection against the use of the
      wrong type. The use of size_t (or ptrdiff_t) will almost always
      work, as all modern architectures have an array size that is the
      same as the pointer size. Only old segmented architectures would
      have to fall back to the slower CRC-32 calculation, where the
      amount of memory that can be accessed is larger than the maximum
      array size.
      3c46f5dd
  3. Apr 16, 2017
    • Mark Adler's avatar
      Handle case where inflateSync used when header never processed. · 44e8ac81
      Mark Adler authored
      If zlib and/or gzip header processing was requested, but a header
      was never provided and inflateSync was used successfully, then the
      inflate state would be inconsistent, trying to compute a check
      value but with no flags set. This commit sets the inflate mode to
      raw in this case, since there is no other assumption that can be
      made if a header was requested but never seen.
      44e8ac81
  4. Mar 30, 2017
  5. Feb 19, 2017
  6. Feb 16, 2017
  7. Jan 16, 2017
  8. Jan 15, 2017
  9. Jan 03, 2017
  10. Jan 02, 2017
Loading