[Bug 217532] sbin/newfs_nandfs/newfs_nandfs.c warning on unaligned pointer value

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 6 17:42:26 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217532

Brooks Davis <brooks at FreeBSD.org> changed:

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

--- Comment #6 from Brooks Davis <brooks at 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 structures.
 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.

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


More information about the freebsd-bugs mailing list