mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-06 02:13:11 +00:00
gzio: fix unaligned access
This commit is contained in:
parent
4f31bfe1d3
commit
95acd4cbda
@ -1116,7 +1116,7 @@ inflate_window (grub_gzio_t gzio)
|
||||
grub_uint32_t csum;
|
||||
|
||||
gzio->hdesc->final (gzio->hcontext);
|
||||
csum = *(grub_uint32_t *)gzio->hdesc->read (gzio->hcontext);
|
||||
csum = grub_get_unaligned32 (gzio->hdesc->read (gzio->hcontext));
|
||||
csum = grub_be_to_cpu32 (csum);
|
||||
if (csum != gzio->orig_checksum)
|
||||
grub_error (GRUB_ERR_BAD_COMPRESSED_DATA,
|
||||
|
Loading…
Reference in New Issue
Block a user