aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-06-14 14:30:16 -0700
committerPaul Eggert2011-06-14 14:30:16 -0700
commitdd0b0efbabfc187be6810a0e41b4ac5fdda667af (patch)
tree227c0b03effa5d98f23d67e152e8fafb61b9fa63 /src/ChangeLog
parent86fe5cfe4de95a44b949db9be105e78497318804 (diff)
downloademacs-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/ChangeLog7
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 @@
12011-06-14 Paul Eggert <eggert@cs.ucla.edu> 12011-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