aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-09-04 11:46:51 -0700
committerPaul Eggert2011-09-04 11:46:51 -0700
commit71f02bc59a291588afa9b6bd1244f330948d20c1 (patch)
tree410c23c92db30ae64e533e417252ba3d19a15baf /src/ChangeLog
parenta0efffc812bd88fd3a710c84ae3bf0db989298e1 (diff)
downloademacs-71f02bc59a291588afa9b6bd1244f330948d20c1.tar.gz
emacs-71f02bc59a291588afa9b6bd1244f330948d20c1.zip
* window.c: Integer overflow fixes.
(window_scroll_line_based, Frecenter): Check that an Emacs fixnum is in range before assigning it to 'int'. (Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for values converted from Emacs fixnums. (Frecenter): Don't wrap around a line count if it is out of 'int' range; instead, treat it as an extreme value. (Fset_window_configuration, compare_window_configurations): Use ptrdiff_t, not int, for index that might exceed 2 GiB.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 101fa7ceab7..d2f956fe66f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
12011-09-04 Paul Eggert <eggert@cs.ucla.edu> 12011-09-04 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * window.c: Integer overflow fixes.
4 (window_scroll_line_based, Frecenter):
5 Check that an Emacs fixnum is in range before assigning it to 'int'.
6 (Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for
7 values converted from Emacs fixnums.
8 (Frecenter): Don't wrap around a line count if it is out of 'int'
9 range; instead, treat it as an extreme value.
10 (Fset_window_configuration, compare_window_configurations):
11 Use ptrdiff_t, not int, for index that might exceed 2 GiB.
12
3 * search.c: Integer overflow fixes 13 * search.c: Integer overflow fixes
4 (Freplace_match): Use ptrdiff_t, not int, for indexes that can 14 (Freplace_match): Use ptrdiff_t, not int, for indexes that can
5 exceed INT_MAX. Check that EMACS_INT value is in range before 15 exceed INT_MAX. Check that EMACS_INT value is in range before