aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-03-29 08:35:12 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-03-30 07:32:33 +0000
commit64d59ff0e0e835a53445b07257d3896fb48abfb5 (patch)
tree5d92c50306ac85b7b9d6208c8bbd4623e1b11bbb /meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux
parente7d4b6225809645a498cafe2d6ef137baf600327 (diff)
libuiomux: fix format security issues
Compiler option -Wformat-security found an issue with an printf in named-open test. Change-Id: If81ce4b1ced6d5e0d591301c9059f0dfbb799438 AGL-Issue: SPEC-504 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux')
-rw-r--r--meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/files/0001-Fix-Wformat-security-issue-in-named-open.patch26
-rw-r--r--meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/libuiomux_git.bbappend2
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/files/0001-Fix-Wformat-security-issue-in-named-open.patch b/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/files/0001-Fix-Wformat-security-issue-in-named-open.patch
new file mode 100644
index 000000000..e2f332cee
--- /dev/null
+++ b/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/files/0001-Fix-Wformat-security-issue-in-named-open.patch
@@ -0,0 +1,26 @@
+From 0b424ab0cd7811f158186d04b868aa2d88559df2 Mon Sep 17 00:00:00 2001
+From: Matt Ranostay <matt.ranostay@konsulko.com>
+Date: Tue, 28 Mar 2017 22:15:21 -0700
+Subject: [PATCH] Fix -Wformat-security issue in named-open
+
+Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
+---
+ src/tests/named-open.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tests/named-open.c b/src/tests/named-open.c
+index 025aa506dad6..dea885babaae 100644
+--- a/src/tests/named-open.c
++++ b/src/tests/named-open.c
+@@ -49,7 +49,7 @@ main (int argc, char *argv[])
+ uiomux_list_device(&name, &count);
+
+ for (i = 0; i < count; i++)
+- printf(name[i]);
++ printf("%s", name[i]);
+
+ uiomux_list_device(&name2, &count);
+
+--
+2.11.0
+
diff --git a/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/libuiomux_git.bbappend b/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/libuiomux_git.bbappend
new file mode 100644
index 000000000..3e64886c0
--- /dev/null
+++ b/meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/libuiomux_git.bbappend
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI_append = " file://0001-Fix-Wformat-security-issue-in-named-open.patch"