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

src/coreboot.c

index 6ad4cfc98801e677a9a1d8f1c7af80873802f9f8..c70e8aa9865bd5dc2659bb7b0fa4e57f5c85d950 100644 (file)
@@ -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));
     }
 }