mcuboot
mcuboot copied to clipboard
bootutil: Unify app_max_size() implementations
Remove redundant application size calculations in favour of a common function, implemented inside bootutil_misc.c. In this way, slot sizes use the same restrictions as image validation.
This change is a follow-up PR to the discussion in the https://github.com/mcu-tools/mcuboot/pull/2283?notification_referrer_id=NT_kwDOAJAHw7MxNjA5NjY2MjgwNjo5NDM5MTcx#issuecomment-2863676366.