aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-07-28 14:34:39 -0700
committerPaul Eggert2011-07-28 14:34:39 -0700
commit3d0c92a26bb73fdc542e4d9e467b31fd0ad02417 (patch)
tree30754be8833646ed36d98fe37695b5a8630806b5 /src/ChangeLog
parentca9ce8f2cb9d3d70c4e7d9dc9299ea4d5d71dfbc (diff)
downloademacs-3d0c92a26bb73fdc542e4d9e467b31fd0ad02417.tar.gz
emacs-3d0c92a26bb73fdc542e4d9e467b31fd0ad02417.zip
* doc.c: Integer and memory overflow fixes.
(get_doc_string_buffer_size): Now ptrdiff_t, not int. (get_doc_string): Check for size calculation overflow. Don't update size until allocation succeeds. (get_doc_string, Fsubstitute_command_keys): Use ptrdiff_t, not EMACS_INT, where ptrdiff_t will do. (Fsubstitute_command_keys): Check for string overflow.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d7d32e90089..6cf9a1f8622 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
12011-07-28 Paul Eggert <eggert@cs.ucla.edu> 12011-07-28 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * doc.c: Integer and memory overflow fixes.
4 (get_doc_string_buffer_size): Now ptrdiff_t, not int.
5 (get_doc_string): Check for size calculation overflow.
6 Don't update size until allocation succeeds.
7 (get_doc_string, Fsubstitute_command_keys): Use ptrdiff_t, not
8 EMACS_INT, where ptrdiff_t will do.
9 (Fsubstitute_command_keys): Check for string overflow.
10
3 Integer and memory overflow fixes for display code. 11 Integer and memory overflow fixes for display code.
4 * dispextern.h (struct glyph_pool.nglyphs): Now ptrdiff_t, not int. 12 * dispextern.h (struct glyph_pool.nglyphs): Now ptrdiff_t, not int.
5 * dispnew.c (adjust_glyph_matrix, realloc_glyph_pool, scrolling_window): 13 * dispnew.c (adjust_glyph_matrix, realloc_glyph_pool, scrolling_window):