From c7a6447c8fc38f33b6f109081662199c9ce6c935 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 1 Jun 2009 20:02:21 +0000 Subject: cbfstool reacts to a too large bootblock file by stopping with an error code now. Signed-off-by: Patrick Georgi Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4329 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/cbfstool/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/cbfstool') 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. */ -- cgit v1.2.3