This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix struct size computation in jit interface
- From: Tom Tromey <tromey at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 22 Mar 2012 14:28:43 -0600
- Subject: Re: Fix struct size computation in jit interface
- References: <4F6A5D60.1010602@redhat.com>
>>>>> "rth" == Richard Henderson <rth@redhat.com> writes:
rth> The code is careful to take the target-specific alignment into account,
rth> but not before settling on the size of the structure, and copying data
rth> from the inferior. Thus this code reads uninitialized data on any
rth> target for which padding actually occurs. This does not include i386,
rth> which is why I assume the bug wasn't noticed before.
rth> Ok?
Ok, thanks.
Tom