From 64d59ff0e0e835a53445b07257d3896fb48abfb5 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 29 Mar 2017 08:35:12 +0300 Subject: 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 --- ...-Fix-Wformat-security-issue-in-named-open.patch | 26 ++++++++++++++++++++++ .../libuiomux/libuiomux_git.bbappend | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/files/0001-Fix-Wformat-security-issue-in-named-open.patch create mode 100644 meta-agl-bsp/meta-renesas/recipes-multimedia/libuiomux/libuiomux_git.bbappend (limited to 'meta-agl-bsp') 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 +Date: Tue, 28 Mar 2017 22:15:21 -0700 +Subject: [PATCH] Fix -Wformat-security issue in named-open + +Signed-off-by: Matt Ranostay +--- + 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" -- cgit 1.2.3-korg