This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/20111] struct sockaddr_storage cannot be aggregate-copied


https://sourceware.org/bugzilla/show_bug.cgi?id=20111

--- Comment #16 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, gentoo/2.23 has been updated
       via  5af60b38e45f490fde467b4db137fed153ad961b (commit)
      from  a80b8ab9117b3e30bb56d913a5e60ead97117d6d (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=5af60b38e45f490fde467b4db137fed153ad961b

commit 5af60b38e45f490fde467b4db137fed153ad961b
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)
    (cherry picked from commit f2225475118c8804b1b31731bdfb3f76eb179e6d)

-----------------------------------------------------------------------

Summary of changes:
 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 +-
 8 files changed, 152 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]