diff options
| author | Paul Eggert | 2011-09-04 11:46:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-04 11:46:51 -0700 |
| commit | 71f02bc59a291588afa9b6bd1244f330948d20c1 (patch) | |
| tree | 410c23c92db30ae64e533e417252ba3d19a15baf /src/alloc.c | |
| parent | a0efffc812bd88fd3a710c84ae3bf0db989298e1 (diff) | |
| download | emacs-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/alloc.c')
0 files changed, 0 insertions, 0 deletions