]> xenbits.xensource.com Git - seabios.git/commitdiff
Fix bug in CBFS file walking with compressed files.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 2 Aug 2013 18:12:09 +0000 (14:12 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 2 Aug 2013 18:12:09 +0000 (14:12 -0400)
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

index 7f7b32225c69f1722b7991289bd5f0f2123ac045..983a2b58dcea46bb0035237c408611f13bd93a42 100644 (file)
@@ -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));
     }
 }