[Pach][imx-code-signing-tool] hab_csf_parser: improve IVT header search

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Pach][imx-code-signing-tool] hab_csf_parser: improve IVT header search

Jump to solution
412 Views
Eximius
Contributor III

Hello,

please see the attached patch for cst-3.4.1.

- Images with appended CSF might have coincidentally the IVT
pattern (IVT_HDR_VAL) before the actual CSF.

- This changes the search by checking if the CSF in the IVT is
within boundaries and has a valid HAB_TAG_CSF or else it will
continue searching for the IVT pattern.

I hope this can be submitted here. Otherwise please inform me where to send the patch to. Thanks.

Regards,
Ian

1 Solution
387 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Eximius!

 

Thank you for sharing your improvements.
Your contributions are truly appreciated by both NXP and the community.

 

Best regards,
Chavira

 

 

View solution in original post

0 Kudos
Reply
2 Replies
395 Views
Eximius
Contributor III

v3 fixes a segfault when debug log is deactivated

 

0 Kudos
Reply
388 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Eximius!

 

Thank you for sharing your improvements.
Your contributions are truly appreciated by both NXP and the community.

 

Best regards,
Chavira

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2140122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BPach%5D%5Bimx-code-signing-tool%5D%20hab_csf_parser%3A%20improve%20IVT%20header%20search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3Eplease%20see%20the%20attached%20patch%20for%26nbsp%3Bcst-3.4.1.%3C%2FP%3E%3CP%3E-%20Images%20with%20appended%20CSF%20might%20have%20coincidentally%20the%20IVT%3CBR%20%2F%3Epattern%20(IVT_HDR_VAL)%20before%20the%20actual%20CSF.%3CBR%20%2F%3E%3CBR%20%2F%3E-%20This%20changes%20the%20search%20by%20checking%20if%20the%20CSF%20in%20the%20IVT%20is%3CBR%20%2F%3Ewithin%20boundaries%20and%20has%20a%20valid%20HAB_TAG_CSF%20or%20else%20it%20will%3CBR%20%2F%3Econtinue%20searching%20for%20the%20IVT%20pattern.%3C%2FP%3E%3CP%3EI%20hope%20this%20can%20be%20submitted%20here.%20Otherwise%20please%20inform%20me%20where%20to%20send%20the%20patch%20to.%20Thanks.%3C%2FP%3E%3CP%3ERegards%2C%3CBR%20%2F%3EIan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140245%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BPach%5D%5Bimx-code-signing-tool%5D%20hab_csf_parser%3A%20improve%20IVT%20header%20search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140245%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F191759%22%20target%3D%22_blank%22%3E%40Eximius%3C%2FA%3E!%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%20for%20sharing%20your%20improvements.%3CBR%20%2F%3EYour%20contributions%20are%20truly%20appreciated%20by%20both%20NXP%20and%20the%20community.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EChavira%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140187%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BPach%5D%5Bimx-code-signing-tool%5D%20hab_csf_parser%3A%20improve%20IVT%20header%20search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140187%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ev3%20fixes%20a%20segfault%20when%20debug%20log%20is%20deactivated%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E