guile-devel
[Top][All Lists]
Advanced

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

Re: struct tail array, compare and segv


From: Ludovic Courtès
Subject: Re: struct tail array, compare and segv
Date: Mon, 26 Feb 2007 10:22:46 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hi,

Kevin Ryde <address@hidden> writes:

> I'm looking at this to allow non-zero tail array only when the layout
> provides for it.  I think all the internal uses of structs have no
> tail array (and a zero size) so that should all be ok.  Dunno if
> anyone else might have used the tail size to get some sneaky extra
> space.  Sounds like the wrong thing to do, but could always be
> loosened up again later.

Your patch looks good to me.

I think it is safe to assume than nobody has passed a non-zero tail size
to `make-struct' when the underlying vtable's layout doesn't allow for
it because the resulting struct is just unusable (its tail elements are
left uninitialized, as we saw earlier in one of these threads).

Thanks,
Ludovic.




reply via email to

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