image: add cert table to image size

Don't warn when the certificate table is the only un-hashed data.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-05-12 21:31:43 -07:00
parent 4e89b9a1ee
commit f7f7ad00a3

View file

@ -271,7 +271,7 @@ int image_find_regions(struct image *image)
fprintf(stderr, "gaps in the section table may result in "
"different checksums\n");
if (bytes != image->size) {
if (bytes + image->cert_table_size != image->size) {
fprintf(stderr, "warning: data remaining[%zd vs %zd]: gaps "
"between PE/COFF sections?\n",
bytes, image->size);