已关闭
fix: add null pointer check for profile content buffer #346
wangtiantian创建于 7月15日关闭于 20 小时前
fix: add null pointer check for profile content buffer #346
已关闭
当前Pull Request已关闭, 关闭人@openharmony_dcp
7月15日 关联了issue:代码检视意见修改
7月15日 添加了label:waiting_on_author
openharmony_ci
7月15日 评论:
7月15日 评论:
感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接。
Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.


7月15日 添加了label:dco检查成功
openharmony_dcp
20 小时前 评论:
20 小时前 评论:
您的PR超过一个月未合入,已经被自动关闭,如有需要您可以重新提交代码进行贡献。


20 小时前 关闭了 pull request
Fix Description
Problem
Missing null pointer check for
profilePkcs7Context.content.GetBufferPtr()inHapProfileVerifyUtils::ParseProfilefunction, which may cause null pointer dereference risk.Solution
profilePkcs7Context.content.GetBufferPtr()in ParseProfile functionRelated Issue
Closes #199
Modified Files
interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp- Add null pointer checkinterfaces/innerkits/appverify/test/unittest/src/hap_profile_verify_utils_test.cpp- Add test casesTest Verification
Added 3 new test cases to cover the new null pointer check logic:
Co-Authored-By: Claude noreply@anthropic.com
Signed-off-by: wangtiantian wangtiantian19@huawei.com