diff options
| author | Paul Eggert | 2011-05-12 12:37:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-12 12:37:40 -0700 |
| commit | 8e55734abd164a7b170380ce0413d1d792429ce8 (patch) | |
| tree | 6a9177c5130c419c089ee64d06b231aefed44afa /src/ChangeLog | |
| parent | 6434756cc552458f871b66dbd28692c8de69633c (diff) | |
| download | emacs-8e55734abd164a7b170380ce0413d1d792429ce8.tar.gz emacs-8e55734abd164a7b170380ce0413d1d792429ce8.zip | |
* keyboard.c (make_lispy_event): Fix problem in integer overflow.
Don't assume that the difference between two unsigned long values
can fit into an integer. At this point, we know button_down_time
<= event->timestamp, so the difference must be nonnegative, so
there's no need to cast the result if double-click-time is
nonnegative, as it should be; check that it's nonnegative, just in
case. This bug is triggered when events are more than 2**31 ms
apart (about 25 days).
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4d6251f6bde..5760bfc2a1c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2011-05-12 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-05-12 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * keyboard.c (make_lispy_event): Fix problem in integer overflow. | ||
| 4 | Don't assume that the difference between two unsigned long values | ||
| 5 | can fit into an integer. At this point, we know button_down_time | ||
| 6 | <= event->timestamp, so the difference must be nonnegative, so | ||
| 7 | there's no need to cast the result if double-click-time is | ||
| 8 | nonnegative, as it should be; check that it's nonnegative, just in | ||
| 9 | case. This bug is triggered when events are more than 2**31 ms | ||
| 10 | apart (about 25 days). | ||
| 11 | |||
| 3 | * xselect.c (last_event_timestamp): Remove duplicate decl. | 12 | * xselect.c (last_event_timestamp): Remove duplicate decl. |
| 4 | (x_own_selection): Remove needless cast to unsigned long. | 13 | (x_own_selection): Remove needless cast to unsigned long. |
| 5 | 14 | ||