[Top][All Lists]
[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.
- struct tail array, compare and segv, Kevin Ryde, 2007/02/12
- Re: struct tail array, compare and segv, Ludovic Courtès, 2007/02/13
- Re: struct tail array, compare and segv, Kevin Ryde, 2007/02/25
- Re: struct tail array, compare and segv,
Ludovic Courtès <=
- Re: struct tail array, compare and segv, Neil Jerram, 2007/02/26
- Re: struct tail array, compare and segv, Kevin Ryde, 2007/02/26
- Re: struct tail array, compare and segv, Neil Jerram, 2007/02/28