diff options
| author | Paul Eggert | 2013-08-11 16:09:26 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-08-11 16:09:26 -0700 |
| commit | d0e615c324db994c8ac0ea2f0725dfc7b6f73f53 (patch) | |
| tree | 03b58c64ab3306c78dbaafcaed0e93e5e103949c /src/ChangeLog | |
| parent | 8d28d0ac2af6f38abb588efb9f673d0e74768e8a (diff) | |
| download | emacs-d0e615c324db994c8ac0ea2f0725dfc7b6f73f53.tar.gz 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 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1780bf4e797..0b74ca7b942 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2013-08-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * decompress.c: Fix bugs with large buffers and weird inputs. | ||
| 4 | Tune a bit. Reindent as per usual Emacs style. | ||
| 5 | (BUFFER_SIZE): Remove. | ||
| 6 | (Fdecompress_gzipped_region): Do not mishandle input buffers with | ||
| 7 | more than UINT_MAX bytes. Decompress into the gap instead of into | ||
| 8 | an auto buffer, as this should avoid copying. Return nil if | ||
| 9 | 'inflate' returns Z_NEED_DICT, as we have no dictionary. Do not | ||
| 10 | set immediate_quit; we shouldn't trust zlib code that much. | ||
| 11 | |||
| 1 | 2013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | 12 | 2013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 13 | ||
| 3 | * decompress.c (Fdecompress_gzipped_region): Respect all zlib | 14 | * decompress.c (Fdecompress_gzipped_region): Respect all zlib |