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:
parent
4e89b9a1ee
commit
f7f7ad00a3
1 changed files with 1 additions and 1 deletions
2
image.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue