-------- Forwarded Message -------- Subject: [PATCH] layout_struct must not call align if alignment set by type_alignof equals 0 Date: Wed, 23 Mar 2016 15:40:50 +0100 From: Thierry Fauck <[email protected]> To: [email protected] CC: Thierry Fauck <[email protected]> From: Thierry Fauck <[email protected]> modified: type.c Signed-off-by: Thierry Fauck <[email protected]> --- type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/type.c b/type.c index 0db94f3..db042db 100644 --- a/type.c +++ b/type.c @@ -152,6 +152,8 @@ layout_struct(struct process *proc, struct arg_type_info *info, size_t alignment = type_alignof(proc, field->info); if (alignment == (size_t)-1) return -1; + else if (alignment == (size_t)0) + return 0; /* Add padding to SZ to align the next element. */ sz = align(sz, alignment); -- 2.7.0
_______________________________________________ Ltrace-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel
