diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-12-11 10:46:06 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-12-11 16:13:16 -0500 |
commit | b58c5b62ac47f84bca17fc7999e30b0a43ccb92d (patch) | |
tree | 28d2f076b5f9a212138c449685336c7cc61602c1 /support/export/export.c | |
parent | 1f3fae1fb25168aac187ff1881738c8ad53a8763 (diff) | |
download | nfs-utils-b58c5b62ac47f84bca17fc7999e30b0a43ccb92d.tar.gz nfs-utils-b58c5b62ac47f84bca17fc7999e30b0a43ccb92d.tar.xz nfs-utils-b58c5b62ac47f84bca17fc7999e30b0a43ccb92d.zip |
mount.nfs: Fix sockaddr pointer aliasing in stropts.c
Using a sockaddr_storage and casting a sockaddr pointer to it breaks
C's aliasing rules.
See:
https://bugzilla.redhat.com/show_bug.cgi?id=448743
Replacing sockaddr_storage makes this code less likely to break when
optimized by gcc. It also saves a significant amount of stack space
by replacing a 130 byte structure with a union that is less than 32
bytes.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/export.c')
0 files changed, 0 insertions, 0 deletions