diff options
| author | Paul Eggert | 2011-06-08 10:54:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-08 10:54:58 -0700 |
| commit | b643996157ced5daf45752d37ac5bee3a4f4389f (patch) | |
| tree | 80bc6f192110e7fdfcb8ceec286d60728dd6de58 /src/ChangeLog | |
| parent | 86f61a158aea8dead5a0836a919a0ce501d3bcf7 (diff) | |
| download | emacs-b643996157ced5daf45752d37ac5bee3a4f4389f.tar.gz emacs-b643996157ced5daf45752d37ac5bee3a4f4389f.zip | |
* alloc.c (mark_vectorlike, mark_char_table, mark_object): Avoid EMACS_UINT
when a (possibly-narrower) signed value would do just as well.
We prefer using signed arithmetic, to avoid comparison confusion.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e2b1b294968..c747a325139 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | * alloc.c (Fmake_bool_vector): Don't assume vector size fits in int. | 3 | * alloc.c (Fmake_bool_vector): Don't assume vector size fits in int. |
| 4 | (allocate_vectorlike): Check for ptrdiff_t overflow. | 4 | (allocate_vectorlike): Check for ptrdiff_t overflow. |
| 5 | (mark_vectorlike, mark_char_table, mark_object): Avoid EMACS_UINT | ||
| 6 | when a (possibly-narrower) signed value would do just as well. | ||
| 7 | We prefer using signed arithmetic, to avoid comparison confusion. | ||
| 5 | 8 | ||
| 6 | * alloc.c: Catch some string size overflows that we were missing. | 9 | * alloc.c: Catch some string size overflows that we were missing. |
| 7 | (XMALLOC_OVERRUN_CHECK_SIZE) [!XMALLOC_OVERRUN_CHECK]: Define to 0, | 10 | (XMALLOC_OVERRUN_CHECK_SIZE) [!XMALLOC_OVERRUN_CHECK]: Define to 0, |