diff options
| author | Paul Eggert | 2011-08-29 08:43:34 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-29 08:43:34 -0700 |
| commit | 62f19c197d32e8773a284616d575686d87903b7d (patch) | |
| tree | 237de2d21e8a33f6821248890c01de7d83dbcba4 /src/ChangeLog | |
| parent | 005d87bd2306e943a16b86c36d1482651d9932d8 (diff) | |
| download | emacs-62f19c197d32e8773a284616d575686d87903b7d.tar.gz emacs-62f19c197d32e8773a284616d575686d87903b7d.zip | |
sprintf-related integer and memory overflow issues.
* doprnt.c (doprnt): Support printing ptrdiff_t and intmax_t values.
(esprintf, esnprintf, exprintf, evxprintf): New functions.
* keyboard.c (command_loop_level): Now EMACS_INT, not int.
(cmd_error): kbd macro iterations count is now EMACS_INT, not int.
(modify_event_symbol): Do not assume that the length of
name_alist_or_stem is safe to alloca and fits in int.
(Fexecute_extended_command): Likewise for function name and binding.
(Frecursion_depth): Wrap around reliably on integer overflow.
* keymap.c (push_key_description): First arg is now EMACS_INT, not int,
since some callers pass EMACS_INT values.
(Fsingle_key_description): Don't crash if symbol name contains more
than MAX_ALLOCA bytes.
* minibuf.c (minibuf_level): Now EMACS_INT, not int.
(get_minibuffer): Arg is now EMACS_INT, not int.
* lisp.h (get_minibuffer, push_key_description): Reflect API changes.
(esprintf, esnprintf, exprintf, evxprintf): New decls.
* window.h (command_loop_level, minibuf_level): Reflect API changes.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bb2a0d20c1f..d60c57dfd53 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2011-08-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | sprintf-related integer and memory overflow issues. | ||
| 4 | |||
| 5 | * doprnt.c (doprnt): Support printing ptrdiff_t and intmax_t values. | ||
| 6 | (esprintf, esnprintf, exprintf, evxprintf): New functions. | ||
| 7 | * keyboard.c (command_loop_level): Now EMACS_INT, not int. | ||
| 8 | (cmd_error): kbd macro iterations count is now EMACS_INT, not int. | ||
| 9 | (modify_event_symbol): Do not assume that the length of | ||
| 10 | name_alist_or_stem is safe to alloca and fits in int. | ||
| 11 | (Fexecute_extended_command): Likewise for function name and binding. | ||
| 12 | (Frecursion_depth): Wrap around reliably on integer overflow. | ||
| 13 | * keymap.c (push_key_description): First arg is now EMACS_INT, not int, | ||
| 14 | since some callers pass EMACS_INT values. | ||
| 15 | (Fsingle_key_description): Don't crash if symbol name contains more | ||
| 16 | than MAX_ALLOCA bytes. | ||
| 17 | * minibuf.c (minibuf_level): Now EMACS_INT, not int. | ||
| 18 | (get_minibuffer): Arg is now EMACS_INT, not int. | ||
| 19 | * lisp.h (get_minibuffer, push_key_description): Reflect API changes. | ||
| 20 | (esprintf, esnprintf, exprintf, evxprintf): New decls. | ||
| 21 | * window.h (command_loop_level, minibuf_level): Reflect API changes. | ||
| 22 | |||
| 1 | 2011-08-26 Paul Eggert <eggert@cs.ucla.edu> | 23 | 2011-08-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 24 | ||
| 3 | Integer and memory overflow issues (Bug#9196). | 25 | Integer and memory overflow issues (Bug#9196). |