[PATCH] Make padding in struct sockaddr_storage explicit [BZ #20111]

Florian Weimer fweimer@redhat.com
Fri May 20 08:56:00 GMT 2016


On 05/19/2016 06:07 PM, Andreas Schwab wrote:
> Florian Weimer <fweimer@redhat.com> writes:
>
>> Are you saying that before my changes, sizeof (struct sockaddr_storage) !=
>> _SS_SIZE?  Which in-tree ports are affected by this?  m68k perhaps,
>> because _ss_aligntype has just two-byte alignment?
>
> Yes, it's 126 there.

Let's make this explicit.  What about the attached patch?

The test passes (on x86_64) with both GCC 5.3.1 and GCC 7 (trunk of a 
few days ago).

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug20111.patch
Type: text/x-patch
Size: 12133 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160520/d2311d0a/attachment.bin>


More information about the Libc-alpha mailing list