Skip to content

Use memcpy() instead of unaligned accesses.

Bitbucket Importer requested to merge bitbucket/merged-pr-45 into branch/default

Created originally on Bitbucket by vbernat (Vincent Bernat)

Was already merged in Bitbucket before import, marked as merged by the import user

This should fix #162 (closed).

When a structure is packed, some members may be unaligned. Some architectures like Sparc are unable to handle those and will be terminated with a SIGBUS.

This changeset use memcpy() to avoid any unaligned accesses.

Tests are OK on Sparc and x86_64

Merge request reports

Loading