diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch deleted file mode 100644 index 44d699051b..0000000000 --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dengke Du <dengke.du@windriver.com> | ||
3 | Date: Tue, 17 Oct 2017 05:42:47 -0400 | ||
4 | Subject: [PATCH] ltp: fix format security error | ||
5 | |||
6 | When enable option: -Werror=format-security, the error like: | ||
7 | |||
8 | | fcntl36.c: In function 'test_fn': | ||
9 | | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security] | ||
10 | | tst_res(TINFO, msg); | ||
11 | | ^~~~~~~ | ||
12 | | cc1: some warnings being treated as errors | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
17 | --- | ||
18 | testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c | ||
22 | index 6f2eb6b..3246d13 100644 | ||
23 | --- a/testcases/kernel/syscalls/fcntl/fcntl36.c | ||
24 | +++ b/testcases/kernel/syscalls/fcntl/fcntl36.c | ||
25 | @@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *), | ||
26 | struct param p2[thread_cnt]; | ||
27 | unsigned char buf[write_size]; | ||
28 | |||
29 | - tst_res(TINFO, msg); | ||
30 | + tst_res(TINFO, "%s", msg); | ||
31 | |||
32 | if (tst_fill_file(fname, 1, write_size, thread_cnt + 1)) | ||
33 | tst_brk(TBROK, "Failed to create tst file"); | ||
34 | -- | ||
35 | 2.8.1 | ||
36 | |||