diff options
| author | Paul Eggert | 2013-08-26 11:10:30 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-08-26 11:10:30 -0700 |
| commit | 1fc8eb33f5534cd3828d7cd15e95771a514dc589 (patch) | |
| tree | 93b9ac5d7ec1eda4ff3b59868e3fe9f0bae22a7f /src/ChangeLog | |
| parent | f5adc984fbdc82def6edc297e88c3ee993c674ae (diff) | |
| download | emacs-1fc8eb33f5534cd3828d7cd15e95771a514dc589.tar.gz emacs-1fc8eb33f5534cd3828d7cd15e95771a514dc589.zip | |
Fix unlikely core dump in init_tty, and simplify terminfo case.
* term.c (init_tty) [TERMINFO]: Fix check for buffer overrun.
The old version incorrectly dumped core if malloc returned a
buffer containing only non-NUL bytes.
(init_tty): Do not allocate or free termcap buffers; the
struct does that for us now.
* termchar.h (TERMCAP_BUFFER_SIZE) [!TERMINFO]: New constant.
(struct tty_display_info): Define members termcap_term_buffer and
termcap_strings_buffer only if !TERMINFO, since terminfo doesn't
use them. Allocate them directly in struct rather than indirectly
via a pointer, to simplify init_tty.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 324fa156f68..5fd090f4b2d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,17 @@ | |||
| 1 | 2013-08-26 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2013-08-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Fix unlikely core dump in init_tty, and simplify terminfo case. | ||
| 4 | * term.c (init_tty) [TERMINFO]: Fix check for buffer overrun. | ||
| 5 | The old version incorrectly dumped core if malloc returned a | ||
| 6 | buffer containing only non-NUL bytes. | ||
| 7 | (init_tty): Do not allocate or free termcap buffers; the | ||
| 8 | struct does that for us now. | ||
| 9 | * termchar.h (TERMCAP_BUFFER_SIZE) [!TERMINFO]: New constant. | ||
| 10 | (struct tty_display_info): Define members termcap_term_buffer and | ||
| 11 | termcap_strings_buffer only if !TERMINFO, since terminfo doesn't | ||
| 12 | use them. Allocate them directly in struct rather than indirectly | ||
| 13 | via a pointer, to simplify init_tty. | ||
| 14 | |||
| 3 | * frame.c (check_minibuf_window): Initialize 'window' properly, | 15 | * frame.c (check_minibuf_window): Initialize 'window' properly, |
| 4 | so that Emacs reliably aborts later if 'window' is not initialized. | 16 | so that Emacs reliably aborts later if 'window' is not initialized. |
| 5 | 17 | ||