diff options
| author | Paul Eggert | 2014-09-07 15:27:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-09-07 15:27:59 -0700 |
| commit | 4612d1eab721a1010312382d1048c8b3a67b18fa (patch) | |
| tree | e0c89c15723fce2430853d3eddb9535ce0ad9e38 /src/ChangeLog | |
| parent | d5e25ad17f871ed7837fcc5277efce762c112f2a (diff) | |
| download | emacs-4612d1eab721a1010312382d1048c8b3a67b18fa.tar.gz 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 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 88ab1eedca8..2654abd32d4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2014-09-07 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-09-07 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Fix bug uncovered by changing alloca to auto buffer (Bug#18410). | ||
| 4 | * coding.c (growable_destination): New function. | ||
| 5 | (produce_chars): Use it for sanity checks. Do not fiddle with | ||
| 6 | dst_end if the source and destination are both nil, as it's | ||
| 7 | the caller's responsibility to avoid overlap. | ||
| 8 | * keyboard.c (read_decoded_event_from_main_queue): | ||
| 9 | The destination must be MAX_MULTIBYTE_LENGTH times the max source | ||
| 10 | length, not 4 times, to prevent decode_coding_c_string from trying | ||
| 11 | to reallocate a destination. This removes the need for the FIXME. | ||
| 12 | |||
| 3 | * callproc.c (exec_failed) [DOS_NT]: Define a dummy. | 13 | * callproc.c (exec_failed) [DOS_NT]: Define a dummy. |
| 4 | All callers simplified. Add a comment about exec_failed, vfork, | 14 | All callers simplified. Add a comment about exec_failed, vfork, |
| 5 | and alloca. | 15 | and alloca. |