epam / nfstrace

Network file system monitor and analyzer
http://epam.github.io/nfstrace/
GNU General Public License v2.0
151 stars 33 forks source link

Fix unaligned access in buffer copies. #21

Closed andrewshadura closed 8 years ago

andrewshadura commented 8 years ago

There's a TODO in the source about fixing alignment of the address being copied. This unaligned access is a problem on armhf with some kernel configurations, and is generally slower even on other architectures due to the fixups. Just use memcpy instead which is bound to do the right thing.

This fixes the Debian bug #832069.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.009%) to 47.34% when pulling d919dc80dcb373a2758be4115133252dcbb4cba0 on andrewshadura:master into b978684fe98b33a357cb99f42a5db42b34aaf2f5 on epam:master.