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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
418件の閲覧回数
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 解決策
393件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
401件の閲覧回数
Eximius
Contributor III

v3 fixes a segfault when debug log is deactivated

 

0 件の賞賛
返信
394件の閲覧回数
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 件の賞賛
返信
%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%20IVT%E3%83%98%E3%83%83%E3%83%80%E3%83%BC%E6%A4%9C%E7%B4%A2%E3%81%AE%E6%94%B9%E5%96%84%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%3CP%3Ecst-3.4.1%20%E3%81%AE%E6%B7%BB%E4%BB%98%E3%83%91%E3%83%83%E3%83%81%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%3CP%3E-%20%E9%AB%84%E6%B6%B2%E3%81%8C%E6%B7%BB%E4%BB%98%E3%81%95%E3%82%8C%E3%81%9F%E7%94%BB%E5%83%8F%E3%81%A7%E3%81%AF%E3%80%81%E5%81%B6%E7%84%B6IVT%E3%81%8C%E8%A6%8B%E3%82%89%E3%82%8C%E3%82%8B%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8B%3CBR%20%2F%3E%E5%AE%9F%E9%9A%9B%E3%81%AE%20CSF%20%E3%81%AE%E5%89%8D%E3%81%AB%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%20(IVT_HDR_VAL)%20%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%20-%20%E3%81%93%E3%82%8C%E3%81%AF%E3%80%81IVT%E5%86%85%E3%81%AE%E9%AB%84%E6%B6%B2%E3%81%8C%3CBR%20%2F%3E%E5%A2%83%E7%95%8C%E5%86%85%E3%81%AB%E3%81%82%E3%82%8A%E3%80%81%E6%9C%89%E5%8A%B9%E3%81%AAHAB_TAG_CSF%E3%82%92%E6%8C%81%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E3%80%81%E3%81%9D%E3%81%86%E3%81%A7%E3%81%AA%E3%81%91%E3%82%8C%E3%81%B0%3CBR%20%2F%3EIVT%20%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E3%81%AE%E6%A4%9C%E7%B4%A2%E3%82%92%E7%B6%9A%E3%81%91%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%93%E3%82%8C%E3%82%92%E3%81%93%E3%81%93%E3%81%AB%E6%8F%90%E5%87%BA%E3%81%A7%E3%81%8D%E3%82%8C%E3%81%B0%E5%B9%B8%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%E3%81%9D%E3%82%8C%E4%BB%A5%E5%A4%96%E3%81%AE%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E3%83%91%E3%83%83%E3%83%81%E3%81%AE%E9%80%81%E4%BF%A1%E5%85%88%E3%82%92%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%82%A4%E3%82%A2%E3%83%B3%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%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%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%20%EF%BC%81%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%94%B9%E5%96%84%E7%82%B9%E3%82%92%E5%85%B1%E6%9C%89%E3%81%97%E3%81%A6%E3%81%84%E3%81%9F%E3%81%A0%E3%81%8D%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E8%B2%A2%E7%8C%AE%E3%81%AF%E3%80%81NXP%20%E3%81%A8%E3%82%B3%E3%83%9F%E3%83%A5%E3%83%8B%E3%83%86%E3%82%A3%E3%81%AE%E4%B8%A1%E6%96%B9%E3%81%8B%E3%82%89%E6%9C%AC%E5%BD%93%E3%81%AB%E6%84%9F%E8%AC%9D%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%97%E3%81%BE%E3%81%99%E3%80%81%3CBR%20%2F%3E%E3%83%81%E3%83%A3%E3%83%93%E3%83%A9%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%20%E3%81%AF%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%83%AD%E3%82%B0%E3%81%8C%E9%9D%9E%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AB%E7%99%BA%E7%94%9F%E3%81%99%E3%82%8B%E3%82%BB%E3%82%B0%E3%83%A1%E3%83%B3%E3%83%88%E9%81%95%E5%8F%8D%E3%82%92%E4%BF%AE%E6%AD%A3%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E