From: Kevin O'Connor Date: Fri, 2 Aug 2013 18:12:09 +0000 (-0400) Subject: Fix bug in CBFS file walking with compressed files. X-Git-Tag: rel-1.7.4~111 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1a113e1144113348e04cbe39fa81a448049e82a0;p=seabios.git Fix bug in CBFS file walking with compressed files. The file walking code was incorrectly using the uncompressed file size when searching for the next file. Signed-off-by: Kevin O'Connor --- 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)); } }