diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-01-26 12:18:25 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-28 01:55:58 +0000 |
commit | 73e5eb38821d693244f841ce4f0a14546e5b6361 (patch) | |
tree | 88f27661515c24c23a02eddca856433189f4b6f8 /futility | |
parent | 9a8dfd00ecf042b7619f0fbbcb8308fce5cfd5c8 (diff) | |
download | vboot-73e5eb38821d693244f841ce4f0a14546e5b6361.tar.gz |
vboot2: fix alignment issues on 32-bit architectures
We were assuming 8-byte alignment for buffers. That's not true on
32-bit architectures. We should make the alignment requirements
explicit (and correct) for all architectures.
BUG=chromium:452179
BRANCH=ToT
CQ-DEPEND=CL:243380
TEST=manual
USE=vboot2 FEATURES=test emerge-x86-alex vboot_reference
Change-Id: I120f23e9c5312d7c21ff9ebb6eea2bac1e430e37
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/243362
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'futility')
-rw-r--r-- | futility/cmd_vb2_verify_fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/cmd_vb2_verify_fw.c b/futility/cmd_vb2_verify_fw.c index 989fc782..53079bb1 100644 --- a/futility/cmd_vb2_verify_fw.c +++ b/futility/cmd_vb2_verify_fw.c @@ -140,7 +140,7 @@ static void print_help(const char *progname) static int do_vb2_verify_fw(int argc, char *argv[]) { struct vb2_context ctx; - uint8_t workbuf[16384]; + uint8_t workbuf[16384] __attribute__ ((aligned (VB2_WORKBUF_ALIGN))); int rv; if (argc < 4) { |