[coreboot] [v2] r4329 - trunk/coreboot-v2/util/cbfstool
svn at coreboot.org
svn at coreboot.org
Mon Jun 1 22:02:21 CEST 2009
Author: oxygene
Date: 2009-06-01 22:02:21 +0200 (Mon, 01 Jun 2009)
New Revision: 4329
Modified:
trunk/coreboot-v2/util/cbfstool/util.c
Log:
cbfstool reacts to a too large bootblock file by stopping
with an error code now.
Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Peter Stuge <peter at stuge.se>
Modified: trunk/coreboot-v2/util/cbfstool/util.c
===================================================================
--- trunk/coreboot-v2/util/cbfstool/util.c 2009-06-01 01:38:29 UTC (rev 4328)
+++ trunk/coreboot-v2/util/cbfstool/util.c 2009-06-01 20:02:21 UTC (rev 4329)
@@ -222,7 +222,8 @@
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. */
More information about the coreboot
mailing list