diff options
| author | Paul Eggert | 2011-09-04 10:27:38 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-04 10:27:38 -0700 |
| commit | a0efffc812bd88fd3a710c84ae3bf0db989298e1 (patch) | |
| tree | bdecd3cd7f5fbb26aea3bc08769c2a4e0c256704 /src/ChangeLog | |
| parent | 29ebea3b123db665db1267880df65d0ec697aff3 (diff) | |
| download | emacs-a0efffc812bd88fd3a710c84ae3bf0db989298e1.tar.gz emacs-a0efffc812bd88fd3a710c84ae3bf0db989298e1.zip | |
* search.c: Integer overflow fixes
(Freplace_match): Use ptrdiff_t, not int, for indexes that can
exceed INT_MAX. Check that EMACS_INT value is in range before
assigning it to the (possibly-narrower) index.
(match_limit): Don't assume that a fixnum can fit in 'int'.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cbd8cd2c219..101fa7ceab7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-09-04 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-09-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * search.c: Integer overflow fixes | ||
| 4 | (Freplace_match): Use ptrdiff_t, not int, for indexes that can | ||
| 5 | exceed INT_MAX. Check that EMACS_INT value is in range before | ||
| 6 | assigning it to the (possibly-narrower) index. | ||
| 7 | (match_limit): Don't assume that a fixnum can fit in 'int'. | ||
| 8 | |||
| 3 | * print.c: Integer overflow fix. | 9 | * print.c: Integer overflow fix. |
| 4 | (print_object): Use ptrdiff_t, not int, for index that can | 10 | (print_object): Use ptrdiff_t, not int, for index that can |
| 5 | exceed INT_MAX. | 11 | exceed INT_MAX. |