diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-09-07 15:27:59 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-09-07 15:27:59 -0700 |
commit | 4612d1eab721a1010312382d1048c8b3a67b18fa (patch) | |
tree | e0c89c15723fce2430853d3eddb9535ce0ad9e38 /lisp/emacs-lisp/lisp-mnt.el | |
parent | d5e25ad17f871ed7837fcc5277efce762c112f2a (diff) | |
download | emacs-4612d1eab721a1010312382d1048c8b3a67b18fa.tar.gz emacs-4612d1eab721a1010312382d1048c8b3a67b18fa.tar.bz2 emacs-4612d1eab721a1010312382d1048c8b3a67b18fa.zip |
Fix bug uncovered by changing alloca to auto buffer.
* coding.c (growable_destination): New function.
(produce_chars): Use it for sanity checks. Do not fiddle with
dst_end if the source and destination are both nil, as it's
the caller's responsibility to avoid overlap.
* keyboard.c (read_decoded_event_from_main_queue):
The destination must be MAX_MULTIBYTE_LENGTH times the max source
length, not 4 times, to prevent decode_coding_c_string from trying
to reallocate a destination. This removes the need for the FIXME.
Fixes: debbugs:18410
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions