summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-06-01 20:02:21 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-06-01 20:02:21 +0000
commitc7a6447c8fc38f33b6f109081662199c9ce6c935 (patch)
tree191fbfa4122e48178727e925de097c2fa5142bd4 /util
parentfff87d31ca480a99f262bedab349f93f0b11d3a1 (diff)
cbfstool reacts to a too large bootblock file by stopping
with an error code now. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4329 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/util.c b/util/cbfstool/util.c
index f0c0b293cf..f77b74634b 100644
--- a/util/cbfstool/util.c
+++ b/util/cbfstool/util.c
@@ -222,7 +222,8 @@ int create_rom(struct rom *rom, const unsigned char *filename,
rom->header->align = htonl(align);
rom->header->offset = htonl(0);
- add_bootblock(rom, bootblockname);
+ if (add_bootblock(rom, bootblockname) == -1)
+ return -1;
/* Write the cbfs master header address at the end of the ROM. */