Fix recently introduced bool vector overrun.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2013 06:46:59 +0000 (22:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2013 06:46:59 +0000 (22:46 -0800)
commit75360f19c3994ab7a532124b7f5eb92bfe7c82ed
treeed6a415b319a37144d63bdfe967daff766f4e044
parentd1a6bccc995f7e1e9d22a386e1aac0d7c888ff18
Fix recently introduced bool vector overrun.

This was due to an optimization that went awry.
Reported by Glenn Morris in
<http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00622.html>.
* alloc.c (make_uninit_bool_vector): Don't allocate a dummy word
for empty vectors, undoing the 2013-11-18 change.
* data.c (bool_vector_binop_driver): Rely on this.
Fix bug that occasionally overran the destination.
* lisp.h (struct Lisp_Bool_vector): Document this.
src/ChangeLog
src/alloc.c
src/data.c
src/lisp.h