* alloc.c: Check that resized vectors' lengths fit in fixnums.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 21:30:16 +0000 (14:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 21:30:16 +0000 (14:30 -0700)
commitdd0b0efbabfc187be6810a0e41b4ac5fdda667af
tree227c0b03effa5d98f23d67e152e8fafb61b9fa63
parent86fe5cfe4de95a44b949db9be105e78497318804
* 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.
src/ChangeLog
src/alloc.c