aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-08-02 14:12:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-08-02 14:12:09 -0400
commit1a113e1144113348e04cbe39fa81a448049e82a0 (patch)
tree34720d5850744fd51f5bd1f4165cb2ff7c2365ad
parent7093aa58046f8685025b0198708e7768733a017d (diff)
downloadseabios-1a113e1144113348e04cbe39fa81a448049e82a0.tar.gz
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 <kevin@koconnor.net>
-rw-r--r--src/coreboot.c2
1 files changed, 1 insertions, 1 deletions
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));
}
}