The file walking code was incorrectly using the uncompressed file size when searching for the next file.
Signed-off-by: Kevin O'Connor kevin@koconnor.net --- src/coreboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/coreboot.c b/src/coreboot.c index 7f7b322..983a2b5 100644 --- a/src/coreboot.c +++ b/src/coreboot.c @@ -407,7 +407,7 @@ coreboot_cbfs_init(void) } romfile_add(&cfile->file);
- fhdr = (void*)ALIGN((u32)cfile->data + cfile->file.size + fhdr = (void*)ALIGN((u32)cfile->data + cfile->rawsize , be32_to_cpu(hdr->align)); } }