[PATCH v2] Fix misaligned access accessing HEADER struct in res_query.c
John David Anglin
dave.anglin@bell.net
Fri Jun 17 22:52:00 GMT 2016
The attached patch fixes BZ 20243. It uses the gcc aligned attribute to decrease the
alignment of variables using the HEADER type. This results in byte accesses being
used for the structure fields and thereby avoids the misaligned accesses noted in the BZ.
The change no longer affects the public interface for the HEADER type.
Tested with trunk and Debian 2.22 builds on hppa-linux. No regressions were observed in the
test results.
Please install if okay.
Dave
--
John David Anglin dave.anglin@bell.net
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submitted-header.diff.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160617/a78b2a3d/attachment.txt>
More information about the Libc-alpha
mailing list