mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 23:59:22 +00:00
* util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
This commit is contained in:
1 parent
5b25873518
commit
8dcbe03b82
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -349,7 +349,7 @@ cmd_crc (char *pathname)
|
||||
read_file (pathname, crc_hook);
|
||||
GRUB_MD_CRC32->final(crc32_context);
|
||||
printf ("%08x\n",
|
||||
grub_be_to_cpu32(*(grub_uint32_t*)GRUB_MD_CRC32->read(crc32_context)));
|
||||
grub_be_to_cpu32 (grub_get_unaligned32 (GRUB_MD_CRC32->read (crc32_context))));
|
||||
}
|
||||
|
||||
static const char *root = NULL;
|
||||
|
||||
Reference in new issue
Block a user