Alexandru Gagniuc (mr.nuke.me@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4772
-gerrit
commit 2f75df829c3cbce3a849c0ec5887768f2dcba54d Author: Aaron Durbin adurbin@chromium.org Date: Tue Jan 21 15:28:38 2014 -0600
cbfstool: correct size left calculation
Change-Id: Iad3897dd28cf12f12ae877cfd83e1990fa7d2f0f Signed-off-by: Aaron Durbin adurbin@chromium.org --- util/cbfstool/cbfs_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/cbfstool/cbfs_image.c b/util/cbfstool/cbfs_image.c index eb9d574..e0841f0 100644 --- a/util/cbfstool/cbfs_image.c +++ b/util/cbfstool/cbfs_image.c @@ -380,7 +380,7 @@ int cbfs_add_entry(struct cbfs_image *image, struct buffer *buffer,
DEBUG("cbfs_add_entry: space at 0x%x+0x%x(%d) bytes\n", addr, addr_next - addr, addr_next - addr); - if (addr + need_size > addr_next) + if (addr + need_size > addr_next - cbfs_calculate_file_header_size("") - sizeof(*entry)) continue;
// Can we simply put object here?