[gtkperf] Fix RHBZ #1037110
Dan Mashal
vicodan at fedoraproject.org
Wed Dec 4 23:39:33 UTC 2013
commit 3e13c23a9cb7f0e7cdee84a460fd524f04b0b74c
Author: Dan Mashal <dan.mashal at fedoraproject.org>
Date: Wed Dec 4 15:39:21 2013 -0800
Fix RHBZ #1037110
format-security-gtkperf.patch | 28 ++++++++++++++++++++++++++++
gtkperf.spec | 6 ++++++
2 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/format-security-gtkperf.patch b/format-security-gtkperf.patch
new file mode 100644
index 0000000..4203c4f
--- /dev/null
+++ b/format-security-gtkperf.patch
@@ -0,0 +1,28 @@
+diff -uNrp a/src/timing.c b/src/timing.c
+--- a/src/timing.c 2005-06-07 09:25:38.000000000 -0700
++++ b/src/timing.c 2013-12-04 15:35:55.481172999 -0800
+@@ -97,7 +97,7 @@ add_test_info_time (AppData * appdata)
+ gtk_text_buffer_insert (appdata->textview_info_buffer, &iter,
+ timestring, -1);
+
+- g_printf (timestring);
++ g_printf (timestring, "%s");
+
+ }
+
+@@ -129,7 +129,7 @@ add_test_info_end (AppData * appdata)
+ gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0,
+ " Test Finished");
+
+- g_printf (timestring);
++ g_printf (timestring, "%s");
+
+ }
+
+@@ -154,5 +154,5 @@ add_test_info_start (AppData * appdata)
+ gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0,
+ " Running tests...");
+
+- g_printf (timestring);
++ g_printf (timestring, "%s");
+ }
diff --git a/gtkperf.spec b/gtkperf.spec
index 5038878..50563c8 100644
--- a/gtkperf.spec
+++ b/gtkperf.spec
@@ -12,6 +12,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source1: gtkperf.desktop
Patch0: gtkperf-aarch64.patch
+#RHBZ 1037110
+Patch1: format-security-gtkperf.patch
%description
GtkPerf is an application designed to test GTK+ performance. The point
@@ -21,6 +23,7 @@ and this way define the speed of device/platform.
%prep
%setup -q -n %{name}
%patch0 -p1
+%patch1 -p1
%build
%configure
@@ -56,6 +59,9 @@ rm -rf %{buildroot}
%{_datadir}/applications/*
%changelog
+* Wed Dec 03 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 0.40-18
+- Fix RHBZ #1037110
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.40-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list