diff options
Diffstat (limited to 'recipes-bsp/imx-test/imx-test/0001-pxp-test-Fix-format-security-error.patch')
-rw-r--r-- | recipes-bsp/imx-test/imx-test/0001-pxp-test-Fix-format-security-error.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-bsp/imx-test/imx-test/0001-pxp-test-Fix-format-security-error.patch b/recipes-bsp/imx-test/imx-test/0001-pxp-test-Fix-format-security-error.patch new file mode 100644 index 00000000..1fe997d7 --- /dev/null +++ b/recipes-bsp/imx-test/imx-test/0001-pxp-test-Fix-format-security-error.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 97a55fe4b1e02b9a4992517234a8b24f8f9f0009 Mon Sep 17 00:00:00 2001 | ||
2 | From: "i.MX Yocto Project Build" <imx.build@nxp.com> | ||
3 | Date: Mon, 27 Jan 2020 13:43:47 -0600 | ||
4 | Subject: [PATCH] pxp test: Fix format-security error | ||
5 | |||
6 | | pxp_lib_test/pxp_test.c: In function 'main': | ||
7 | | pxp_lib_test/pxp_test.c:541:2: error: format not a string literal and no format arguments [-Werror=format-security] | ||
8 | | 541 | printf(usage); | ||
9 | | | ^~~~~~ | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | ||
14 | --- | ||
15 | test/pxp_lib_test/pxp_test.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/test/pxp_lib_test/pxp_test.c b/test/pxp_lib_test/pxp_test.c | ||
19 | index 107198f..72c984d 100644 | ||
20 | --- a/test/pxp_lib_test/pxp_test.c | ||
21 | +++ b/test/pxp_lib_test/pxp_test.c | ||
22 | @@ -538,6 +538,6 @@ int main(int argc, char *argv[]) | ||
23 | |||
24 | return 0; | ||
25 | usage: | ||
26 | - printf(usage); | ||
27 | + printf("%s", usage); | ||
28 | return -1; | ||
29 | } | ||
30 | -- | ||
31 | 2.17.1 | ||
32 | |||