Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootutil: Fix image verification and add state to is header valid function #2045

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

nordicjm
Copy link
Collaborator

bootutil: loader: Add state to boot_is_header_valid() function

Adds the state object to this function so it can be referenced

bootutil: loader: Verify image header before checking image

Changes the order of operations to validate the image header
before checking the image, it does not make sense to check the
image if the header itself is invalid

@nordicjm nordicjm added the area: core Affects core functionality label Aug 22, 2024
Adds the state object to this function so it can be referenced

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
boot/bootutil/src/loader.c Outdated Show resolved Hide resolved
Changes the order of operations to validate the image header
before checking the image, it does not make sense to check the
image if the header itself is invalid

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Adds notes on the changed bootutil features

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
@nordicjm nordicjm merged commit bf13555 into mcu-tools:main Aug 27, 2024
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Affects core functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants