We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54856cf commit 4520379Copy full SHA for 4520379
1 file changed
boot/bootutil/src/loader.c
@@ -1059,7 +1059,7 @@ boot_validated_swap_type(struct boot_loader_state *state,
1059
#ifdef MCUBOOT_CHECK_HEADER_LOAD_ADDRESS
1060
internal_img_addr = hdr->ih_load_addr;
1061
#else
1062
- rc = flash_area_read(secondary_fa, hdr->ih_hdr_size + RESET_OFFSET,
+ rc = flash_area_read(secondary_fa, hdr->ih_hdr_size + sizeof(uint32_t),
1063
&internal_img_addr, sizeof(internal_img_addr));
1064
if (rc != 0) {
1065
return BOOT_SWAP_TYPE_FAIL;
0 commit comments