[SeaBIOS] [PATCH] Fix bug in CBFS file walking with compressed files.
Kevin O'Connor
kevin at koconnor.net
Fri Aug 2 20:13:29 CEST 2013
The file walking code was incorrectly using the uncompressed file size
when searching for the next file.
Signed-off-by: Kevin O'Connor <kevin at 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));
}
}
--
1.7.11.7
More information about the SeaBIOS
mailing list