diff options
| author | Paul Eggert | 2014-08-03 05:34:44 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-08-03 05:34:44 -0700 |
| commit | 8f88f7d3c5da38cd2d781770b533dc6c93c52d59 (patch) | |
| tree | a476fa662f618c23f55cfd5999425217f489de92 /src/ChangeLog | |
| parent | 5fe16efb24c1b1a89959f7af3c886a4022c8f1b1 (diff) | |
| download | emacs-8f88f7d3c5da38cd2d781770b533dc6c93c52d59.tar.gz emacs-8f88f7d3c5da38cd2d781770b533dc6c93c52d59.zip | |
Avoid undefined behavior with signed left shift.
Caught by 'gcc -fsanitize=undefined'.
* dispextern.h, scroll.c (scrolling_max_lines_saved, scrolling_1):
* dispnew.c (line_hash_code, scrolling):
* scroll.c (calculate_scrolling, calculate_direct_scrolling):
Use 'unsigned', not 'int', for line hashes.
(scrolling_max_lines_saved): Avoid mystery constants for hash sizes.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 28367ed34f5..dce13035766 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2014-08-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Avoid undefined behavior with signed left shift. | ||
| 4 | Caught by 'gcc -fsanitize=undefined'. | ||
| 5 | * dispextern.h, scroll.c (scrolling_max_lines_saved, scrolling_1): | ||
| 6 | * dispnew.c (line_hash_code, scrolling): | ||
| 7 | * scroll.c (calculate_scrolling, calculate_direct_scrolling): | ||
| 8 | Use 'unsigned', not 'int', for line hashes. | ||
| 9 | (scrolling_max_lines_saved): Avoid mystery constants for hash sizes. | ||
| 10 | |||
| 1 | 2014-08-02 Paul Eggert <eggert@cs.ucla.edu> | 11 | 2014-08-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 12 | ||
| 3 | Make compare-strings more compatible with old behavior (Bug#17903). | 13 | Make compare-strings more compatible with old behavior (Bug#17903). |