mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-02-21 17:07:18 +07:00
Fix unaligned memory access
Bug found on sparc64. Thanks to "Jan Engelhardt <jengelh@medozas.de>" for providing access to such a machine.
This commit is contained in:
parent
9faa7b376c
commit
c6824b62f2
@ -669,7 +669,7 @@ static struct index_mm_node *index_mm_read_node(struct index_mm *idx,
|
||||
child_count = 0;
|
||||
}
|
||||
|
||||
children_padding = (offsetof(struct index_mm_node, children) +
|
||||
children_padding = (sizeof(struct index_mm_node) +
|
||||
(sizeof(uint32_t) * child_count)) % sizeof(void *);
|
||||
|
||||
if (offset & INDEX_NODE_VALUES)
|
||||
|
Loading…
Reference in New Issue
Block a user