Re: [PATCH libnftnl 4/4] src: Use memcpy() to handle potentially unaligned data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On Wed, Oct 17, 2018 at 12:32:54PM -0700, Matt Turner wrote:
> Rolf Eike Beer <eike@xxxxxxxxxx> reported that nft-expr_quota-test fails
> with a SIGBUS on SPARC due to unaligned accesses. This patch resolves
> that and fixes additional sources of unaligned accesses matching the
> same pattern. Both nft-expr_quota-test and nft-expr_objref-test
> generated unaligned accesses on DEC Alpha.

Conversion to use memcpy() is just to stay safe, right? I thought it
is only 64-bits case that can cause the unaligned access.

This change should allow us to consolidate more code / simplify the
library by doing so in follow up patches.

Thanks!



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux