diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bf81533460a..c9c739dde9a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,35 @@ | |||
| 1 | 2011-06-06 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Check for overflow when converting integer to cons and back. | ||
| 4 | * charset.c (Fdefine_charset_internal, Fdecode_char): | ||
| 5 | Use cons_to_unsigned to catch overflow. | ||
| 6 | (Fencode_char): Use INTEGER_TO_CONS. | ||
| 7 | * composite.h (LGLYPH_CODE): Use cons_to_unsigned. | ||
| 8 | (LGLYPH_SET_CODE): Use INTEGER_TO_CONS. | ||
| 9 | * data.c (long_to_cons, cons_to_long): Remove. | ||
| 10 | (cons_to_unsigned, cons_to_signed): New functions. | ||
| 11 | These signal an error for invalid or out-of-range values. | ||
| 12 | * dired.c (Ffile_attributes): Use INTEGER_TO_CONS. | ||
| 13 | * fileio.c (Fset_visited_file_modtime): Use CONS_TO_INTEGER. | ||
| 14 | * font.c (Ffont_variation_glyphs): | ||
| 15 | * fontset.c (Finternal_char_font): Use INTEGER_TO_CONS. | ||
| 16 | * lisp.h: Include <intprops.h>. | ||
| 17 | (INTEGER_TO_CONS, CONS_TO_INTEGER): New macros. | ||
| 18 | (cons_to_signed, cons_to_unsigned): New decls. | ||
| 19 | (long_to_cons, cons_to_long): Remove decls. | ||
| 20 | * undo.c (record_first_change): Use INTEGER_TO_CONS. | ||
| 21 | (Fprimitive_undo): Use CONS_TO_INTEGER. | ||
| 22 | * xfns.c (Fx_window_property): Likewise. | ||
| 23 | * xselect.c: Include <limits.h>. | ||
| 24 | (x_own_selection, selection_data_to_lisp_data): | ||
| 25 | Use INTEGER_TO_CONS. | ||
| 26 | (x_handle_selection_request, x_handle_selection_clear) | ||
| 27 | (x_get_foreign_selection, Fx_disown_selection_internal) | ||
| 28 | (Fx_get_atom_name, x_send_client_event): Use CONS_TO_INTEGER. | ||
| 29 | (lisp_data_to_selection_data): Use cons_to_unsigned. | ||
| 30 | (x_fill_property_data): Use cons_to_signed. | ||
| 31 | Report values out of range. | ||
| 32 | |||
| 3 | Check for buffer and string overflow more precisely. | 33 | Check for buffer and string overflow more precisely. |
| 4 | * buffer.h (BUF_BYTES_MAX): New macro. | 34 | * buffer.h (BUF_BYTES_MAX): New macro. |
| 5 | * lisp.h (STRING_BYTES_MAX): New macro. | 35 | * lisp.h (STRING_BYTES_MAX): New macro. |