[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15405: 24.3; #[] freezes emacs

From: Stefan Monnier
Subject: bug#15405: 24.3; #[] freezes emacs
Date: Wed, 25 Sep 2013 13:10:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Without any special casing of zero vectors, the allocator calls
> SETUP_ON_FREE_LIST for a zero vector and sets v->u.next.  But for a
> zero vector the allocator only allows enough memory for the header, so
> setting the next pointer corrupts other memory.

Yes, that's why we have special cased the zero-length vectors.

How many different zero vectors do we need?  We at least need 2 (the []
and the #[]), but do we need others?  If not, let's try and change the
code so that we can have those two pre-allocated and use the right one
at the right place.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]