Skip to content
Commit 2e605191 authored by Thomas Altenbach's avatar Thomas Altenbach Committed by David Brown
Browse files

boot: bootutil: swap-offset: Fix image size check during validation



When checking the size of an image in bootutil_img_validate, the offset
to the end of the TLV area was used as the image size in all cases.
However, when using swap-offset, the upgrade image is written in the
secondary with an offset. This offset is not part of the image and must
therefore not be taken into account in the image size.

Signed-off-by: default avatarThomas Altenbach <thomas.altenbach@legrand.com>
parent 61d280b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment