diff options
| author | Paul Eggert | 2011-07-07 10:42:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-07 10:42:28 -0700 |
| commit | 5b8ffbdddd1280515a254c360f67626f0c9ab3c8 (patch) | |
| tree | 5a7d3f152f774078bb50836c82883ae2f947b319 /src/ChangeLog | |
| parent | 903fe15d9deb28a72075c39dfd6003a2ff1af134 (diff) | |
| download | emacs-5b8ffbdddd1280515a254c360f67626f0c9ab3c8.tar.gz emacs-5b8ffbdddd1280515a254c360f67626f0c9ab3c8.zip | |
* bidi.c: Integer signedness and overflow fixes.
(bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state)
(bidi_cache_search, bidi_cache_find_level_change)
(bidi_cache_iterator_state, bidi_cache_find, bidi_find_other_level_edge)
(bidi_dump_cached_states):
Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead.
(bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer
signed integers.
(elsz): Make it a (signed) constant.
(bidi_cache_iterator_state): Check for size-calculation overflow.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f2c318fa84a..a6cafedb36c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2011-07-07 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-07-07 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * bidi.c: Integer signedness and overflow fixes. | ||
| 4 | (bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state) | ||
| 5 | (bidi_cache_search, bidi_cache_find_level_change) | ||
| 6 | (bidi_cache_iterator_state, bidi_cache_find, bidi_find_other_level_edge) | ||
| 7 | (bidi_dump_cached_states): | ||
| 8 | Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead. | ||
| 9 | (bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer | ||
| 10 | signed integers. | ||
| 11 | (elsz): Make it a (signed) constant. | ||
| 12 | (bidi_cache_iterator_state): Check for size-calculation overflow. | ||
| 13 | |||
| 3 | * alloc.c: Integer signedness and overflow fixes. | 14 | * alloc.c: Integer signedness and overflow fixes. |
| 4 | Do not impose an arbitrary 32-bit limit on malloc sizes when debugging. | 15 | Do not impose an arbitrary 32-bit limit on malloc sizes when debugging. |
| 5 | (__malloc_size_t): Default to size_t, not to int. | 16 | (__malloc_size_t): Default to size_t, not to int. |