1 Star 0 Fork 36

李宁杰/secGear

forked from src-openEuler/secGear 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0067-local-attest-verify-input-hash-pointer.patch 832 Bytes
一键复制 编辑 原始数据 按行查看 历史
qsW 提交于 2023-09-13 15:40 . syncchronous features
From 91394f19abb7d7f5863bbf3c44a7ef83f0616ee6 Mon Sep 17 00:00:00 2001
From: houmingyong <houmingyong@huawei.com>
Date: Fri, 2 Jun 2023 15:47:33 +0800
Subject: [PATCH] local attest verify input hash pointer
---
component/local_attest/sg_local_attest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/component/local_attest/sg_local_attest.c b/component/local_attest/sg_local_attest.c
index f94473e..3e612cf 100644
--- a/component/local_attest/sg_local_attest.c
+++ b/component/local_attest/sg_local_attest.c
@@ -14,7 +14,7 @@
cc_enclave_result_t cc_local_attest(char *taid, char *img_hash, char *mem_hash)
{
- if (taid == NULL || (img_hash == NULL && mem_hash == NULL)) {
+ if (taid == NULL || img_hash == NULL || mem_hash == NULL) {
return CC_ERROR_BAD_PARAMETERS;
}
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li_ning_jie/secGear.git
git@gitee.com:li_ning_jie/secGear.git
li_ning_jie
secGear
secGear
master

搜索帮助