sbtools: relax file size condition (easier to work with)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30543 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b25d6e0c96
commit
781d59ec62
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ static void extract(unsigned long filesize)
|
|||
|
||||
if(memcmp(sb_header->signature, "STMP", 4) != 0)
|
||||
bugp("Bad signature");
|
||||
if(sb_header->image_size * BLOCK_SIZE != filesize)
|
||||
if(sb_header->image_size * BLOCK_SIZE > filesize)
|
||||
bugp("File size mismatch");
|
||||
if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t))
|
||||
bugp("Bad header size");
|
||||
|
|
Loading…
Reference in a new issue