Skip to content

Unaligned memory access in rs_block_sig_init #135

@wRAR

Description

@wRAR

On the Debian SPARC64 port the sumset test fails with SIGBUS with the following circumstances:

0x0000010000002344 in rs_block_sig_init (sig=0x1000010815a, weak_sum=463471464, strong_sum=0x7fefffff0e8, strong_len=6) at ./src/sumset.c:41
41          sig->weak_sum = weak_sum;

As you can see, sig is not aligned on 4 while sig->weak_sum has size 4. Looks like it's because block_sigs is an unpadded array of structures of size 6.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions