From d128901ace662498f64ec0b16c27b2e58761499d Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 11 May 2013 09:59:59 +0200 Subject: [PATCH] * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed attribute since structure is not necessarily aligned. --- ChangeLog | 5 +++++ grub-core/fs/hfspluscomp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28df32468..97b773d82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-05-11 Vladimir Serbinenko + + * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed + attribute since structure is not necessarily aligned. + 2013-05-11 Andrey Borzenkov * docs/grub.texi (Device syntax): Clarify description of network diff --git a/grub-core/fs/hfspluscomp.c b/grub-core/fs/hfspluscomp.c index b3434418c..13e4671e6 100644 --- a/grub-core/fs/hfspluscomp.c +++ b/grub-core/fs/hfspluscomp.c @@ -74,7 +74,7 @@ struct grub_hfsplus_compress_attr grub_uint32_t type; grub_uint32_t uncompressed_inline_size; grub_uint32_t always_0; -}; +} __attribute__ ((packed)); enum {