diff options
| author | Paul Eggert | 2014-02-28 13:45:34 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-02-28 13:45:34 -0800 |
| commit | 8268febfe0c336ff47a61d0d416fd4bebf61a993 (patch) | |
| tree | 4a1590e6aff922e69646cc35347192ea507b1c7a /src/ChangeLog | |
| parent | b70257b07ea6053bce27b20ad0bda50f547bd393 (diff) | |
| download | emacs-8268febfe0c336ff47a61d0d416fd4bebf61a993.tar.gz emacs-8268febfe0c336ff47a61d0d416fd4bebf61a993.zip | |
Fix a few crashes and leaks when cloning C strings.
* alloc.c, lisp.h (dupstring): New function.
* gtkutil.c (xg_get_font):
* term.c (tty_default_color_capabilities):
* xsettings.c (store_monospaced_changed)
(store_font_name_changed, parse_settings)
(read_and_apply_settings, init_gsettings, init_gconf): Use it.
This avoids some unlikely crashes due to accessing freed storage,
and avoids some minor memory leaks in the more-typical case.
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 d2eeab33e4f..704ac68b67e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-02-28 Paul Eggert <eggert@penguin.cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix a few crashes and leaks when cloning C strings. | ||
| 4 | * alloc.c, lisp.h (dupstring): New function. | ||
| 5 | * gtkutil.c (xg_get_font): | ||
| 6 | * term.c (tty_default_color_capabilities): | ||
| 7 | * xsettings.c (store_monospaced_changed) | ||
| 8 | (store_font_name_changed, parse_settings) | ||
| 9 | (read_and_apply_settings, init_gsettings, init_gconf): Use it. | ||
| 10 | This avoids some unlikely crashes due to accessing freed storage, | ||
| 11 | and avoids some minor memory leaks in the more-typical case. | ||
| 12 | |||
| 1 | 2014-02-28 Martin Rudalics <rudalics@gmx.at> | 13 | 2014-02-28 Martin Rudalics <rudalics@gmx.at> |
| 2 | 14 | ||
| 3 | * xdisp.c (note_mode_line_or_margin_highlight): Don't show drag | 15 | * xdisp.c (note_mode_line_or_margin_highlight): Don't show drag |