futility: vb1_helper: Fix sanity size check for parsing kernel partition

vbutil_kernel --verify didn't check if the size of the kernel body fit
the file it was in. Now it does.

BRANCH=None
BUG=None
TEST=make runtests

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I9cdfd50bd70b72650cdc0fd62bf59a394746ad84
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2225663
Reviewed-by: Joel Kitching <kitching@chromium.org>
1 file changed