]> git.eshelyaron.com Git - emacs.git/commit
* window.c: Integer overflow fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 18:46:51 +0000 (11:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 18:46:51 +0000 (11:46 -0700)
commit71f02bc59a291588afa9b6bd1244f330948d20c1
tree410c23c92db30ae64e533e417252ba3d19a15baf
parenta0efffc812bd88fd3a710c84ae3bf0db989298e1
* 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.
src/ChangeLog
src/window.c