aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-08-02 14:12:09 -0400
committerGerd Hoffmann <kraxel@redhat.com>2013-08-09 10:29:12 +0200
commit7d9cbe613694924921ed1a6f8947d711c5832eee (patch)
tree21d3a7cbdc342faaae1d883a20e002533e2383a0
parent43937d8c70e6e75a2b1e0030324d0e51c7d87f71 (diff)
downloadseabios-7d9cbe613694924921ed1a6f8947d711c5832eee.zip
seabios-7d9cbe613694924921ed1a6f8947d711c5832eee.tar.gz
seabios-7d9cbe613694924921ed1a6f8947d711c5832eee.tar.bz2
Fix bug in CBFS file walking with compressed files.rel-1.7.3.1
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> (cherry picked from commit 1a113e1144113348e04cbe39fa81a448049e82a0)
-rw-r--r--src/coreboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreboot.c b/src/coreboot.c
index 6ad4cfc..c70e8aa 100644
--- a/src/coreboot.c
+++ b/src/coreboot.c
@@ -375,7 +375,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));
}
}