From 8bff25945bfceaeace132998aa98f6d1022aa3e9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 17 Apr 2011 18:37:27 +0000 Subject: sbtoslf: command size doesn't include itself, but section can be padded with random data git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29740 a1c6a512-1295-4272-9138-f99709370657 --- utils/sbtools/sbtoelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c index b430e07eb7..54daf7bc1f 100644 --- a/utils/sbtools/sbtoelf.c +++ b/utils/sbtools/sbtoelf.c @@ -595,7 +595,7 @@ static void extract(unsigned long filesize) char name[5]; fill_section_name(name, tag->identifier); int pos = offset; - int size = (tag->len - 1) * BLOCK_SIZE; /* command include itself */ + int size = tag->len * BLOCK_SIZE; int data_sec = !(tag->flags & SECTION_BOOTABLE); int encrypted = !(tag->flags & SECTION_CLEARTEXT); -- cgit v1.2.3