diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-03-30 14:36:02 -0700 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-04-05 19:28:30 +0200 |
| commit | e2d8066922fe9d5dfe9cd652fa01c4cc547c8ea2 (patch) | |
| tree | f963e72bf96521411b58ec7deb7b4645a282d08a | |
| parent | b17f499131ea75b1a5396314dc66acaa234460b3 (diff) | |
| download | meta-openembedded-e2d8066922fe9d5dfe9cd652fa01c4cc547c8ea2.tar.gz | |
libunique: Fix build with secutiy flags on
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-gnome/libunique/libunique/0001-test-unique-Add-format-qualifier-s-for-string.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-gnome/libunique/libunique_1.1.6.bb | 11 |
2 files changed, 38 insertions, 5 deletions
diff --git a/meta-oe/recipes-gnome/libunique/libunique/0001-test-unique-Add-format-qualifier-s-for-string.patch b/meta-oe/recipes-gnome/libunique/libunique/0001-test-unique-Add-format-qualifier-s-for-string.patch new file mode 100644 index 0000000000..7f9fdf3971 --- /dev/null +++ b/meta-oe/recipes-gnome/libunique/libunique/0001-test-unique-Add-format-qualifier-s-for-string.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 37632aca00d48c53e91f08bc7435c721ba81b2cd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 30 Mar 2017 14:32:55 -0700 | ||
| 4 | Subject: [PATCH] test-unique: Add format qualifier %s for string | ||
| 5 | |||
| 6 | Fixes potential security issues that compiler flags | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | --- | ||
| 10 | tests/test-unique.c | 4 ++-- | ||
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/tests/test-unique.c b/tests/test-unique.c | ||
| 14 | index b7cde45..82ee81b 100644 | ||
| 15 | --- a/tests/test-unique.c | ||
| 16 | +++ b/tests/test-unique.c | ||
| 17 | @@ -82,10 +82,10 @@ app_message_cb (UniqueApp *app, | ||
| 18 | GTK_DIALOG_DESTROY_WITH_PARENT, | ||
| 19 | GTK_MESSAGE_INFO, | ||
| 20 | GTK_BUTTONS_CLOSE, | ||
| 21 | - title); | ||
| 22 | + "%s",title); | ||
| 23 | if (message) | ||
| 24 | gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), | ||
| 25 | - message); | ||
| 26 | + "%s",message); | ||
| 27 | |||
| 28 | gtk_window_set_urgency_hint (GTK_WINDOW (dialog), TRUE); | ||
| 29 | |||
| 30 | -- | ||
| 31 | 2.12.1 | ||
| 32 | |||
diff --git a/meta-oe/recipes-gnome/libunique/libunique_1.1.6.bb b/meta-oe/recipes-gnome/libunique/libunique_1.1.6.bb index 8aa293ff34..9133cccb11 100644 --- a/meta-oe/recipes-gnome/libunique/libunique_1.1.6.bb +++ b/meta-oe/recipes-gnome/libunique/libunique_1.1.6.bb | |||
| @@ -4,11 +4,12 @@ HOMEPAGE = "https://wiki.gnome.org/Attic/LibUnique" | |||
| 4 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=libunique" | 4 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=libunique" |
| 5 | 5 | ||
| 6 | SRC_URI = "${GNOME_MIRROR}/libunique/1.1/libunique-${PV}.tar.bz2 \ | 6 | SRC_URI = "${GNOME_MIRROR}/libunique/1.1/libunique-${PV}.tar.bz2 \ |
| 7 | file://fix_for_compile_with_gcc-4.6.0.patch \ | 7 | file://fix_for_compile_with_gcc-4.6.0.patch \ |
| 8 | file://noconst.patch \ | 8 | file://noconst.patch \ |
| 9 | file://build.patch \ | 9 | file://build.patch \ |
| 10 | file://0001-Makefile.am-use-LIBTOOL-instead-of-hardcoded-libtool.patch \ | 10 | file://0001-Makefile.am-use-LIBTOOL-instead-of-hardcoded-libtool.patch \ |
| 11 | " | 11 | file://0001-test-unique-Add-format-qualifier-s-for-string.patch \ |
| 12 | " | ||
| 12 | 13 | ||
| 13 | SRC_URI[md5sum] = "7955769ef31f1bc4f83446dbb3625e6d" | 14 | SRC_URI[md5sum] = "7955769ef31f1bc4f83446dbb3625e6d" |
| 14 | SRC_URI[sha256sum] = "e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb" | 15 | SRC_URI[sha256sum] = "e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb" |
