This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20111] struct sockaddr_storage cannot be aggregate-copied
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 24 May 2016 09:25:25 +0000
- Subject: [Bug libc/20111] struct sockaddr_storage cannot be aggregate-copied
- Auto-submitted: auto-generated
- References: <bug-20111-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20111
--- Comment #13 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.23/master has been updated
via f2225475118c8804b1b31731bdfb3f76eb179e6d (commit)
from bdce95930e1d9a7d013d1ba78740243491262879 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f2225475118c8804b1b31731bdfb3f76eb179e6d
commit f2225475118c8804b1b31731bdfb3f76eb179e6d
Author: Florian Weimer <fweimer@redhat.com>
Date: Mon May 23 19:43:09 2016 +0200
Make padding in struct sockaddr_storage explicit [BZ #20111]
This avoids aliasing issues with GCC 6 in -fno-strict-aliasing
mode. (With implicit padding, not all data is copied.)
This change makes it explicit that struct sockaddr_storage is
only 126 bytes large on m68k (unlike elsewhere, where we end up
with the requested 128 bytes). The new test case makes sure that
this does not happen on other architectures.
(cherry picked from commit 3375cfafa7961c6ae0e509c31c3b3cef9ad1f03d)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 23 ++++
bits/sockaddr.h | 5 +-
bits/socket.h | 8 +-
inet/Makefile | 4 +-
inet/tst-sockaddr.c | 125 ++++++++++++++++++++
sysdeps/mach/hurd/bits/socket.h | 8 +-
sysdeps/unix/bsd/bits/sockaddr.h | 5 +-
sysdeps/unix/sysv/linux/bits/socket.h | 8 +-
.../unix/sysv/linux/m68k/bits}/sockaddr.h | 5 +-
9 files changed, 175 insertions(+), 16 deletions(-)
create mode 100644 inet/tst-sockaddr.c
copy {bits => sysdeps/unix/sysv/linux/m68k/bits}/sockaddr.h (90%)
--
You are receiving this mail because:
You are on the CC list for the bug.