From 45e99b1ee7fb29c0a49b02351b0bb38141c5fdff Mon Sep 17 00:00:00 2001 From: houmingyong Date: Fri, 2 Jun 2023 15:50:27 +0800 Subject: [PATCH] bugfix --- ...cal-attest-verify-input-hash-pointer.patch | 25 +++++++++++++++++++ secGear.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0067-local-attest-verify-input-hash-pointer.patch diff --git a/0067-local-attest-verify-input-hash-pointer.patch b/0067-local-attest-verify-input-hash-pointer.patch new file mode 100644 index 0000000..6c0ab56 --- /dev/null +++ b/0067-local-attest-verify-input-hash-pointer.patch @@ -0,0 +1,25 @@ +From 91394f19abb7d7f5863bbf3c44a7ef83f0616ee6 Mon Sep 17 00:00:00 2001 +From: houmingyong +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 + diff --git a/secGear.spec b/secGear.spec index 8a300bb..99b2c9f 100644 --- a/secGear.spec +++ b/secGear.spec @@ -1,6 +1,6 @@ Name: secGear Version: 0.1.0 -Release: 40 +Release: 41 Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features @@ -75,6 +75,7 @@ Patch62: 0063-some-code-optimize.patch Patch63: 0064-support-local-attest.patch Patch64: 0065-optimize-name-ree-agent-to-ra-agent.patch Patch65: 0066-fix-error-file-name.patch +Patch66: 0067-local-attest-verify-input-hash-pointer.patch BuildRequires: gcc python automake autoconf libtool BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++ openssl-libs openssl-devel @@ -206,6 +207,9 @@ popd systemctl restart rsyslog %changelog +* Fri Jun 2 2023 houmingyong - 0.1.0-41 +- DESC: fix local attest bug + * Fri Jun 2 2023 houmingyong - 0.1.0-40 - DESC: fix error file name -- Gitee