diff options
| author | Paul Eggert | 2011-06-14 14:30:16 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-14 14:30:16 -0700 |
| commit | dd0b0efbabfc187be6810a0e41b4ac5fdda667af (patch) | |
| tree | 227c0b03effa5d98f23d67e152e8fafb61b9fa63 /src/ChangeLog | |
| parent | 86fe5cfe4de95a44b949db9be105e78497318804 (diff) | |
| download | emacs-dd0b0efbabfc187be6810a0e41b4ac5fdda667af.tar.gz emacs-dd0b0efbabfc187be6810a0e41b4ac5fdda667af.zip | |
* alloc.c: Check that resized vectors' lengths fit in fixnums.
(header_size, word_size): New constants.
(allocate_vectorlike): Don't check size overflow here.
(allocate_vector): Check it here instead, since this is the only
caller of allocate_vectorlike that could cause overflow.
Check that the new vector's length is representable as a fixnum.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7bd1d47b328..dd61843bc85 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2011-06-14 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * alloc.c: Check that resized vectors' lengths fit in fixnums. | ||
| 4 | (header_size, word_size): New constants. | ||
| 5 | (allocate_vectorlike): Don't check size overflow here. | ||
| 6 | (allocate_vector): Check it here instead, since this is the only | ||
| 7 | caller of allocate_vectorlike that could cause overflow. | ||
| 8 | Check that the new vector's length is representable as a fixnum. | ||
| 9 | |||
| 3 | * fns.c (next_almost_prime): Don't return a multiple of 3 or 5. | 10 | * fns.c (next_almost_prime): Don't return a multiple of 3 or 5. |
| 4 | The previous code was bogus. For example, next_almost_prime (32) | 11 | The previous code was bogus. For example, next_almost_prime (32) |
| 5 | returned 39, which is undesirable as it is a multiple of 3; and | 12 | returned 39, which is undesirable as it is a multiple of 3; and |