aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-09-04 12:14:54 -0700
committerPaul Eggert2011-09-04 12:14:54 -0700
commit53e9fe90811730f68c4ea246cd8dee8aa22486de (patch)
tree199e2f43e41bb6cd3d0497947029386adaebeb95 /src/ChangeLog
parentf5e29b9b70a5b6493d13c912e27ecf3bffc97716 (diff)
parent7ab3acf4ad7166a3ae8998a8a43ad59f852879ea (diff)
downloademacs-53e9fe90811730f68c4ea246cd8dee8aa22486de.tar.gz
emacs-53e9fe90811730f68c4ea246cd8dee8aa22486de.zip
Integer overflow fixes for scrolling, etc.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6113c2362ee..741bd6e3d53 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,39 @@
12011-09-04 Paul Eggert <eggert@cs.ucla.edu>
2
3 Integer overflow fixes for scrolling, etc.
4 Without this fix, Emacs silently mishandles large integers sometimes.
5 For example, "C-u 4294967297 M-x recenter" was be treated as if
6 it were "C-u 1 M-x recenter" on a typical 64-bit host.
7
8 * xdisp.c: Integer overflow fix.
9 (try_window_id): Check Emacs fixnum range before converting to 'int'.
10
11 * window.c: Integer overflow fixes.
12 (window_scroll_line_based, Frecenter):
13 Check that an Emacs fixnum is in range before assigning it to 'int'.
14 (Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for
15 values converted from Emacs fixnums.
16 (Frecenter): Don't wrap around a line count if it is out of 'int'
17 range; instead, treat it as an extreme value.
18 (Fset_window_configuration, compare_window_configurations):
19 Use ptrdiff_t, not int, for index that might exceed 2 GiB.
20
21 * search.c: Integer overflow fixes
22 (Freplace_match): Use ptrdiff_t, not int, for indexes that can
23 exceed INT_MAX. Check that EMACS_INT value is in range before
24 assigning it to the (possibly-narrower) index.
25 (match_limit): Don't assume that a fixnum can fit in 'int'.
26
27 * print.c: Integer overflow fix.
28 (print_object): Use ptrdiff_t, not int, for index that can
29 exceed INT_MAX.
30
31 * indent.c: Integer overflow fixes.
32 (position_indentation): Now takes ptrdiff_t, not int.
33 (Fvertical_motion): Don't wrap around LINES values that don't fit
34 in 'int'. Instead, treat them as extreme values. This is good
35 enough for windows, which can't have more than INT_MAX lines anyway.
36
12011-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org> 372011-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 38
3 * Require libxml/parser.h to avoid compilation warning. 39 * Require libxml/parser.h to avoid compilation warning.