1 |
commit: fe235bbe8df4e0271669eeda58d6710ae5efc021 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 16 13:58:33 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 16 13:58:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe235bbe |
7 |
|
8 |
app-misc/kanatest: fix -Wformat-security |
9 |
|
10 |
Closes: https://bugs.gentoo.org/521098 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
.../files/kanatest-0.4.8-format-security.patch | 22 ++++++++++++++++++++++ |
14 |
app-misc/kanatest/kanatest-0.4.8.ebuild | 1 + |
15 |
2 files changed, 23 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/kanatest/files/kanatest-0.4.8-format-security.patch b/app-misc/kanatest/files/kanatest-0.4.8-format-security.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..7493d0a7bd1 |
20 |
--- /dev/null |
21 |
+++ b/app-misc/kanatest/files/kanatest-0.4.8-format-security.patch |
22 |
@@ -0,0 +1,22 @@ |
23 |
+--- a/src/stats.c |
24 |
++++ b/src/stats.c |
25 |
+@@ -84,7 +84,7 @@ gchar buffer[BUFFER_SIZE]; |
26 |
+ |
27 |
+ info_dialog = gtk_message_dialog_new (GTK_WINDOW(appGUI->sts->stat_window), |
28 |
+ GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, |
29 |
+- GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, buffer); |
30 |
++ GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", buffer); |
31 |
+ |
32 |
+ gtk_window_set_title(GTK_WINDOW(info_dialog), _("Question")); |
33 |
+ gtk_widget_show (info_dialog); |
34 |
+--- a/src/test.c |
35 |
++++ b/src/test.c |
36 |
+@@ -538,7 +538,7 @@ test_info(GUI *appGUI) { |
37 |
+ |
38 |
+ info_dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(appGUI->main_window), |
39 |
+ GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, |
40 |
+- GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, message); |
41 |
++ GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "%s", message); |
42 |
+ |
43 |
+ gtk_window_set_title (GTK_WINDOW(info_dialog), _("Information")); |
44 |
+ gtk_widget_show (info_dialog); |
45 |
|
46 |
diff --git a/app-misc/kanatest/kanatest-0.4.8.ebuild b/app-misc/kanatest/kanatest-0.4.8.ebuild |
47 |
index 187ad8bee1a..c1d64fbe9eb 100644 |
48 |
--- a/app-misc/kanatest/kanatest-0.4.8.ebuild |
49 |
+++ b/app-misc/kanatest/kanatest-0.4.8.ebuild |
50 |
@@ -24,6 +24,7 @@ PATCHES=( |
51 |
"${FILESDIR}"/${P}-autoconf.patch |
52 |
"${FILESDIR}"/${P}-cflags.patch |
53 |
"${FILESDIR}"/${P}-desktop-QA.patch |
54 |
+ "${FILESDIR}"/${P}-format-security.patch |
55 |
) |
56 |
|
57 |
src_prepare() { |