This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20111] New: struct sockaddr_storage cannot be aggregate-copied
- From: "rguenth at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 18 May 2016 07:36:27 +0000
- Subject: [Bug libc/20111] New: struct sockaddr_storage cannot be aggregate-copied
- Auto-submitted: auto-generated
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.