projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
0a4264b
)
Avoid unaligned access
author
Wouter Verhelst <w@uter.be>
Fri, 5 Jun 2009 19:43:54 +0000
(21:43 +0200)
committer
Wouter Verhelst <w@uter.be>
Fri, 5 Jun 2009 19:43:54 +0000
(21:43 +0200)
nbd-tester-client tried to write to a char array in a packed struct by
casting it to an u64 pointer and dereferencing it. That causes unaligned
access and, hence, a SIGBUS on SPARC.
Fix by using memcpy instead.
No differences found