From f7f7ad00a370d031b6acbef1c87a504a8a2c178c Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sat, 12 May 2012 21:31:43 -0700 Subject: [PATCH] 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 --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index 418883e..4f06df9 100644 --- a/image.c +++ b/image.c @@ -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);