Fix #21439 - Fix missaligned read in the hfs parser
This commit is contained in:
parent
bead2f39aa
commit
2bea582527
|
@ -787,7 +787,7 @@ grub_hfs_find_node_node_found (struct grub_hfs_node *hnd,
|
|||
if (cmp <= 0)
|
||||
{
|
||||
grub_uint32_t *node = (grub_uint32_t *) rec->data;
|
||||
c->found = grub_be_to_cpu32 (*node);
|
||||
c->found = r_read_be32 (node);
|
||||
}
|
||||
else /* The key can not be found in the tree. */
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue