diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 36 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | 37 | 2011-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. |