[PATCH] Fix misaligned access accessing HEADER struct in res_query.c
John David Anglin
dave.anglin@bell.net
Wed Jun 15 14:59:00 GMT 2016
On 2016-06-15 10:43 AM, Florian Weimer wrote:
>> I don't think the packed derivative affects the layout of HEADER given
>> the way the fields are
>> arranged.
>
> I verified that it changes alignment, even on x86_64. That's the
> intent, and it results in a layout change (if this struct is used as a
> part of other structs, for example).
I'm suggesting this be done in res_query.c where we we need byte
alignment. Nothing else would
have access to this typedef, so it couldn't affect the layout of any
other structs.
Dave
--
John David Anglin dave.anglin@bell.net
More information about the Libc-alpha
mailing list