aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-09-01 07:44:49 -0700
committerPaul Eggert2011-09-01 07:44:49 -0700
commit8666506ecd6b1a90c7c66fb4b6051e90fba20c30 (patch)
tree5f853c76e609cf303965e7cd7eb361e011e98641 /src/ChangeLog
parent726cfaae869af4f678e26ace56d7dc42676bc299 (diff)
downloademacs-8666506ecd6b1a90c7c66fb4b6051e90fba20c30.tar.gz
emacs-8666506ecd6b1a90c7c66fb4b6051e90fba20c30.zip
* src/doprnt.c (esnprintf): Remove. All uses removed.
Suggested by Chong Yidong in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9412#23>.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0ba2df42186..94ba3a040ca 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,9 +1,9 @@
12011-08-31 Paul Eggert <eggert@cs.ucla.edu> 12011-09-01 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 sprintf-related integer and memory overflow issues (Bug#9412). 3 sprintf-related integer and memory overflow issues (Bug#9412).
4 4
5 * doprnt.c (doprnt): Support printing ptrdiff_t and intmax_t values. 5 * doprnt.c (doprnt): Support printing ptrdiff_t and intmax_t values.
6 (esprintf, esnprintf, exprintf, evxprintf): New functions. 6 (esprintf, exprintf, evxprintf): New functions.
7 * keyboard.c (command_loop_level): Now EMACS_INT, not int. 7 * keyboard.c (command_loop_level): Now EMACS_INT, not int.
8 (cmd_error): kbd macro iterations count is 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 9 (modify_event_symbol): Do not assume that the length of
@@ -17,7 +17,7 @@
17 * minibuf.c (minibuf_level): Now EMACS_INT, not int. 17 * minibuf.c (minibuf_level): Now EMACS_INT, not int.
18 (get_minibuffer): Arg is 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. 19 * lisp.h (get_minibuffer, push_key_description): Reflect API changes.
20 (esprintf, esnprintf, exprintf, evxprintf): New decls. 20 (esprintf, exprintf, evxprintf): New decls.
21 * window.h (command_loop_level, minibuf_level): Reflect API changes. 21 * window.h (command_loop_level, minibuf_level): Reflect API changes.
22 22
23 * dbusbind.c (signature_cat): New function. 23 * dbusbind.c (signature_cat): New function.
@@ -43,7 +43,7 @@
43 * font.c: Include <float.h>, for DBL_MAX_10_EXP. 43 * font.c: Include <float.h>, for DBL_MAX_10_EXP.
44 (font_unparse_xlfd): Don't blindly alloca long strings. 44 (font_unparse_xlfd): Don't blindly alloca long strings.
45 Don't assume XINT result fits in int, or that XFLOAT_DATA * 10 45 Don't assume XINT result fits in int, or that XFLOAT_DATA * 10
46 fits in int, when using sprintf. Use single esnprintf to count 46 fits in int, when using sprintf. Use single snprintf to count
47 length of string rather than counting it via multiple sprintfs; 47 length of string rather than counting it via multiple sprintfs;
48 that's simpler and more reliable. 48 that's simpler and more reliable.
49 (font_unparse_fcname): Use it to avoid sprintf buffer overrun. 49 (font_unparse_fcname): Use it to avoid sprintf buffer overrun.
@@ -102,9 +102,6 @@
102 to avoid potential buffer overrun. 102 to avoid potential buffer overrun.
103 103
104 * xterm.c (x_io_error_quitter): Don't overrun sprintf buffer. 104 * xterm.c (x_io_error_quitter): Don't overrun sprintf buffer.
105 (x_term_init): Use sprintf, not snprintf, so that we need not
106 worry about ancient hosts that lack snprintf. The buffer cannot
107 possibly be overrun, so this is safe.
108 105
109 * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF. 106 * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF.
110 107