summaryrefslogtreecommitdiffstats
path: root/recipes-security/optee/optee-client-qoriq/0001-GCC-8-format-truncation-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/optee/optee-client-qoriq/0001-GCC-8-format-truncation-error.patch')
-rw-r--r--recipes-security/optee/optee-client-qoriq/0001-GCC-8-format-truncation-error.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/recipes-security/optee/optee-client-qoriq/0001-GCC-8-format-truncation-error.patch b/recipes-security/optee/optee-client-qoriq/0001-GCC-8-format-truncation-error.patch
deleted file mode 100644
index f58590c3..00000000
--- a/recipes-security/optee/optee-client-qoriq/0001-GCC-8-format-truncation-error.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 05f741c1e6263bec2977901abe61463b7f8175ad Mon Sep 17 00:00:00 2001
2From: Chunrong Guo <chunrong.guo@nxp.com>
3Date: Fri, 22 Jun 2018 11:58:09 +0800
4Subject: [PATCH] GCC 8 format-truncation error
5
6Signed-off-by: BJ DevOps Team <bjdevops@NXP1.onmicrosoft.com>
7---
8 libteec/src/teec_trace.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/libteec/src/teec_trace.c b/libteec/src/teec_trace.c
12index 78b79d6..7901deb 100644
13--- a/libteec/src/teec_trace.c
14+++ b/libteec/src/teec_trace.c
15@@ -73,7 +73,7 @@ int _dprintf(const char *function, int flen, int line, int level,
16 const char *prefix, const char *fmt, ...)
17 {
18 char raw[MAX_PRINT_SIZE];
19- char prefixed[MAX_PRINT_SIZE];
20+ char prefixed[MAX_PRINT_SIZE + 10];
21 char *to_print = NULL;
22 const char *func;
23 int err;
24@@ -106,7 +106,7 @@ int _dprintf(const char *function, int flen, int line, int level,
25 */
26 int thread_id = syscall(SYS_gettid); /* perf issue ? */
27
28- snprintf(prefixed, MAX_PRINT_SIZE,
29+ snprintf(prefixed, MAX_PRINT_SIZE + 10,
30 "%s [%d] %s:%s:%d: %s",
31 trace_level_strings[level], thread_id, prefix, func,
32 line, raw);
33--
341.8.3.1
35