[packages/libgnomeui] - fix format string errors
baggins
baggins at pld-linux.org
Wed Dec 31 19:39:36 CET 2014
commit 21f9c9d3ee684fce4a889265df5a6006afa12fa2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Dec 31 18:39:22 2014 +0000
- fix format string errors
format-security.patch | 20 ++++++++++++++++++++
libgnomeui.spec | 2 ++
2 files changed, 22 insertions(+)
---
diff --git a/libgnomeui.spec b/libgnomeui.spec
index 3171f9f..6e38848 100644
--- a/libgnomeui.spec
+++ b/libgnomeui.spec
@@ -12,6 +12,7 @@ License: LGPL v2+
Group: X11/Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgnomeui/2.24/%{name}-%{version}.tar.bz2
# Source0-md5: d4bb506b1916015323928faab5aa708b
+Patch0: format-security.patch
URL: http://www.gnome.org/
BuildRequires: GConf2-devel >= 2.24.0
BuildRequires: autoconf >= 2.54
@@ -131,6 +132,7 @@ libgnomeui - przykładowe programy.
%prep
%setup -q
+%patch0 -p1
%build
%{?with_apidocs:%{__gtkdocize}}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..ca48d01
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,20 @@
+--- libgnomeui-2.24.5/libgnomeui/gnome-thumbnail.c~ 2010-03-29 10:48:34.000000000 +0000
++++ libgnomeui-2.24.5/libgnomeui/gnome-thumbnail.c 2014-12-31 18:36:43.725812339 +0000
+@@ -863,7 +863,7 @@
+ }
+ close (tmp_fd);
+
+- g_snprintf (mtime_str, 21, "%ld", original_mtime);
++ g_snprintf (mtime_str, 21, "%ld", (long)original_mtime);
+ width = gdk_pixbuf_get_option (thumbnail, "tEXt::Thumb::Image::Width");
+ height = gdk_pixbuf_get_option (thumbnail, "tEXt::Thumb::Image::Height");
+
+@@ -970,7 +970,7 @@
+ }
+ close (tmp_fd);
+
+- g_snprintf (mtime_str, 21, "%ld", mtime);
++ g_snprintf (mtime_str, 21, "%ld", (long)mtime);
+ pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
+ saved_ok = gdk_pixbuf_save (pixbuf,
+ tmp_path,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgnomeui.git/commitdiff/21f9c9d3ee684fce4a889265df5a6006afa12fa2
More information about the pld-cvs-commit
mailing list