Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2017 17:42:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217532] sbin/newfs_nandfs/newfs_nandfs.c warning on unaligned pointer value
Message-ID:  <bug-217532-8-lNY6wBQtUR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217532-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217532-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217532

Brooks Davis <brooks@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brooks@FreeBSD.org

--- Comment #6 from Brooks Davis <brooks@FreeBSD.org> ---
It's probably not important in practice, but the memcpy() is probably safer=
 as
I don't think that struct assignment is defined in C for misaligned structu=
res.
 At the very least, it would be a compiler bug in the memcpy() didn't work,=
 but
might be an "optimization" if you took a (potentially unhandled) unhandled
alignment fault in the assignment.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217532-8-lNY6wBQtUR>