* decompress.c: Fix bugs with large buffers and weird inputs.
commitb64b25f77deb74452a2e94afd40674e30cdd8da2
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2013 23:09:26 +0000 (11 16:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2013 23:09:26 +0000 (11 16:09 -0700)
tree1c9e559bb26d7ec4bd6f43fb43498cfb4f50ddf9
parent2949cdcdf5d5fde75141c699776cc6874a97e607
* decompress.c: Fix bugs with large buffers and weird inputs.

Tune a bit.  Reindent as per usual Emacs style.
(BUFFER_SIZE): Remove.
(Fdecompress_gzipped_region): Do not mishandle input buffers with
more than UINT_MAX bytes.  Decompress into the gap instead of into
an auto buffer, as this should avoid copying.  Return nil if
'inflate' returns Z_NEED_DICT, as we have no dictionary.  Do not
set immediate_quit; we shouldn't trust zlib code that much.
src/ChangeLog
src/decompress.c