Skip to content

imgtool: fix verify tlv offset before main scan #2303

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GeorgeCGV
Copy link
Contributor

@GeorgeCGV GeorgeCGV commented May 13, 2025

After #2063 the imgtool verify fails to validate an image signed with a previous imgtool version.

The PR corrects tlv_off by accounting for protected TLVs found before the main scan.

Fixes #2302.

Correct tlv_off by accounting for protected TLVs
found before main scan.

Signed-off-by: Georgij Cernysiov <[email protected]>
@GeorgeCGV GeorgeCGV requested a review from d3zd3z as a code owner May 13, 2025 16:32
@nordicjm nordicjm requested a review from de-nordic May 14, 2025 05:56
@nordicjm nordicjm added this to the Release 2.2.0 milestone May 14, 2025
Copy link
Collaborator

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops... should have offloaded this to a function.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imgtool: verify fails for an image signed with previous version
3 participants