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] New: struct sockaddr_storage cannot be aggregate-copied


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

            Bug ID: 20111
           Summary: struct sockaddr_storage cannot be aggregate-copied
           Product: glibc
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: rguenth at gcc dot gnu.org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

As was noticed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71120 (which has
a testcase) struct sockaddr_storage is defined in a way that aggregate-copying
it does _not_ transfer all data of a sockaddr_in overlayed.  This is due to
the padding between the ss_family and __ss_align members.

-- 
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]