Created attachment 748823 [details] [diff] [review]
Use memcpy and properly aligned temporary variables instead of pointer casts with unclear alignment
There are a few dubious lhs pointer casts which may triger bus errors on alignment critical archtitectures. At least the last one (assignment of mask to the header) did actualy hit in testing on sparc64.
Attached patch fixes it by using temporary variables and memcpy.