summaryrefslogtreecommitdiff
path: root/lib/getopt.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-08-11 16:09:26 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-08-11 16:09:26 -0700
commitd0e615c324db994c8ac0ea2f0725dfc7b6f73f53 (patch)
tree03b58c64ab3306c78dbaafcaed0e93e5e103949c /lib/getopt.c
parent8d28d0ac2af6f38abb588efb9f673d0e74768e8a (diff)
downloademacs-d0e615c324db994c8ac0ea2f0725dfc7b6f73f53.tar.gz
emacs-d0e615c324db994c8ac0ea2f0725dfc7b6f73f53.tar.bz2
emacs-d0e615c324db994c8ac0ea2f0725dfc7b6f73f53.zip
* 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.
Diffstat (limited to 'lib/getopt.c')
0 files changed, 0 insertions, 0 deletions