aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wmemcmp.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-05-23 19:43:09 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-05-24 11:21:54 +0200
commitf2225475118c8804b1b31731bdfb3f76eb179e6d (patch)
treeb73e92b7c2135b137f4f2d15995d724340d1d62c /wcsmbs/wmemcmp.c
parentbdce95930e1d9a7d013d1ba78740243491262879 (diff)
downloadglibc-f2225475118c8804b1b31731bdfb3f76eb179e6d.zip
glibc-f2225475118c8804b1b31731bdfb3f76eb179e6d.tar.gz
glibc-f2225475118c8804b1b31731bdfb3f76eb179e6d.tar.bz2
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)
Diffstat (limited to 'wcsmbs/wmemcmp.c')
0 files changed, 0 insertions, 0 deletions