summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/sbtools/sbtoelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c
index d729357a56..50a23e56b3 100644
--- a/utils/sbtools/sbtoelf.c
+++ b/utils/sbtools/sbtoelf.c
@@ -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");