chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Fix crash in vector-resize when making vectors


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Fix crash in vector-resize when making vectors smaller
Date: Fri, 17 Jan 2014 21:32:07 +0100
User-agent: Mutt/1.4.2.3i

Hi all,

While working on something else I noticed that if you supply the
resize-vector with a smaller target vector size than the current
vector, it will cause a crash with paranoid checks enabled (DEBUGBUILD=1).

Attached is a simple patch + test.  The ##sys#grow-vector calls in
library.scm itself really only increase the vector size, so we could
leave it in, but I think the performance benefit is neglible compared
to the maintenance overhead of having two vector resizing operations.

I strongly recommend adding this to the stability branch.

Cheers,
Peter
-- 
http://www.more-magic.net

Attachment: 0001-Fix-crashes-in-resize-vector-when-sizing-down-detect.patch
Description: Text document


reply via email to

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