diff --git a/0047-del-print-uncontrol-form-string.patch b/0047-del-print-uncontrol-form-string.patch new file mode 100644 index 0000000000000000000000000000000000000000..91150d1caf07457cae7528fb0e35f34728a36922 --- /dev/null +++ b/0047-del-print-uncontrol-form-string.patch @@ -0,0 +1,33 @@ +From 8877dd937ccb482ab830b9a9d4ca02f6a31045b7 Mon Sep 17 00:00:00 2001 +From: zhengxiaoxiao +Date: Sun, 5 Jun 2022 21:29:41 +0800 +Subject: [PATCH] del print uncontrol form string + +--- + src/host_src/enclave.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/host_src/enclave.c b/src/host_src/enclave.c +index 8d6c8a6..6fd7510 100644 +--- a/src/host_src/enclave.c ++++ b/src/host_src/enclave.c +@@ -142,14 +142,14 @@ static bool check_transform_path(cc_enclave_result_t *res, const char *path, cha + /* check file exists and get absolute pathname */ + if (realpath(path, real_p) == NULL) { + *res = CC_ERROR_INVALID_PATH; +- print_error_term("Path %s error %s\n", path, strerror(errno)); ++ print_error_term("Path error %s\n", strerror(errno)); + return false; + } + + /* check file permission */ + if (access(real_p, R_OK) != 0) { + *res = CC_ERROR_ACCESS_DENIED; +- print_error_term("Path %s error %s\n", path, strerror(errno)); ++ print_error_term("Path error %s\n", strerror(errno)); + return false; + } + size_t len = strlen(real_p) + 1; +-- +2.33.0 + diff --git a/secGear.spec b/secGear.spec index aea8278bed301cb98332773f2c6e117f210d0339..ca8a3051ac4fd781229ab7a9c20112cea8c011f3 100644 --- a/secGear.spec +++ b/secGear.spec @@ -1,6 +1,6 @@ Name: secGear Version: 0.1.0 -Release: 27 +Release: 28 Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features @@ -55,6 +55,7 @@ Patch42: 0043-fix-partial-resource-leak.patch Patch43: 0044-fix-pointer-without-init-or-check-NULL.patch Patch44: 0045-optimize-the-private-key-usage-of-the-single-step-si.patch Patch45: 0046-fix-return-value.patch +Patch46: 0047-del-print-uncontrol-form-string.patch BuildRequires: gcc python automake autoconf libtool BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++ @@ -172,6 +173,9 @@ popd systemctl restart rsyslog %changelog +* Mon Jun 6 2022 zhengxiaoxiao - 0.1.0-28 +* DESC: del print uncontrol form string + * Sun May 15 2022 zhengxiaoxiao - 0.1.0-27 * DESC: fix return value