diff options
| author | Paul Eggert | 2011-07-28 17:30:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-28 17:30:00 -0700 |
| commit | 34db673b3978bd88aea081882a70bdcdf53028a7 (patch) | |
| tree | 45687e0d92ee98047899b1602c345424889da749 /src/ChangeLog | |
| parent | ddff315164d62859e0eb87e89de9f785b953a39a (diff) | |
| download | emacs-34db673b3978bd88aea081882a70bdcdf53028a7.tar.gz emacs-34db673b3978bd88aea081882a70bdcdf53028a7.zip | |
* keyboard.c: Integer and memory overflow fixes.
(read_char, menu_bar_items, tool_bar_items, read_char_x_menu_prompt)
(read_char_minibuf_menu_width, read_char_minibuf_menu_prompt)
(follow_key, read_key_sequence): Use ptrdiff_t, not int, to count maps.
(read_char_minibuf_menu_prompt): Check for overflow in size
calculations. Don't update size until allocation succeeds. Redo
calculations to avoid overflow.
* keyboard.h: Change prototypes to match the above.
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 5683578fedb..e42d536e6d3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2011-07-29 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-07-29 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * keyboard.c: Integer and memory overflow fixes. | ||
| 4 | (read_char, menu_bar_items, tool_bar_items, read_char_x_menu_prompt) | ||
| 5 | (read_char_minibuf_menu_width, read_char_minibuf_menu_prompt) | ||
| 6 | (follow_key, read_key_sequence): Use ptrdiff_t, not int, to count maps. | ||
| 7 | (read_char_minibuf_menu_prompt): Check for overflow in size | ||
| 8 | calculations. Don't update size until allocation succeeds. Redo | ||
| 9 | calculations to avoid overflow. | ||
| 10 | * keyboard.h: Change prototypes to match the above. | ||
| 11 | |||
| 3 | * image.c: Integer and memory overflow fixes. | 12 | * image.c: Integer and memory overflow fixes. |
| 4 | (RANGED_INTEGERP, TYPE_RANGED_INTEGERP): Remove; these are duplicate | 13 | (RANGED_INTEGERP, TYPE_RANGED_INTEGERP): Remove; these are duplicate |
| 5 | now that they've been promoted to lisp.h. | 14 | now that they've been promoted to lisp.h. |