[packages/xfce4-mailwatch-plugin] - fixed format string errors - rel 11

baggins baggins at pld-linux.org
Thu Jan 2 16:47:01 CET 2014


commit d187ea70019c87a124bd99486224ad8ac328820d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jan 2 16:46:39 2014 +0100

    - fixed format string errors
    - rel 11

 format-security.patch       | 30 ++++++++++++++++++++++++++++++
 xfce4-mailwatch-plugin.spec |  4 +++-
 2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/xfce4-mailwatch-plugin.spec b/xfce4-mailwatch-plugin.spec
index 1ba5f9a..b3f487d 100644
--- a/xfce4-mailwatch-plugin.spec
+++ b/xfce4-mailwatch-plugin.spec
@@ -2,7 +2,7 @@ Summary:	Multi-protocol, multi-mailbox mail watcher plugin for Xfce4 panel
 Summary(pl.UTF-8):	Wtyczka powiadamiania o poczcie dla panelu Xfce4
 Name:		xfce4-mailwatch-plugin
 Version:	1.1.0
-Release:	10
+Release:	11
 License:	GPL v2
 Group:		X11/Applications
 Source0:	http://spuriousinterrupt.org/files/mailwatch/%{name}-%{version}.tar.bz2
@@ -11,6 +11,7 @@ Patch0:		%{name}-ui.patch
 Patch1:		dsofix.patch
 Patch2:		mbox-refresh-interval.patch
 Patch3:		gnutls-2.12.patch
+Patch4:		format-security.patch
 URL:		http://spuriousinterrupt.org/projects/xfce4-mailwatch-plugin/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake
@@ -53,6 +54,7 @@ Obecnie obsługuje następujące protokoły:
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__intltoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..e2baca6
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,30 @@
+diff -ur xfce4-mailwatch-plugin-1.1.0.orig/libmailwatch-core/mailwatch-net-conn.c xfce4-mailwatch-plugin-1.1.0/libmailwatch-core/mailwatch-net-conn.c
+--- xfce4-mailwatch-plugin-1.1.0.orig/libmailwatch-core/mailwatch-net-conn.c	2014-01-02 14:50:13.736123554 +0100
++++ xfce4-mailwatch-plugin-1.1.0/libmailwatch-core/mailwatch-net-conn.c	2014-01-02 14:57:07.112787229 +0100
+@@ -224,7 +224,7 @@
+         else
+             reason = gnutls_strerror(ret);
+         if(error)
+-            g_set_error(error, XFCE_MAILWATCH_ERROR, code, reason);
++            g_set_error(error, XFCE_MAILWATCH_ERROR, code, "%s", reason);
+         g_critical("XfceMailwatch: TLS handshake failed: %s", reason);
+ 
+         return FALSE;
+@@ -763,7 +763,7 @@
+             break;
+         else if(ret < 0 && EINTR != errno) {
+             g_set_error(error, XFCE_MAILWATCH_ERROR,
+-                        XFCE_MAILWATCH_ERROR_FAILED, strerror(errno));
++                        XFCE_MAILWATCH_ERROR_FAILED, "%s", strerror(errno));
+             return -1;
+         } else if(!block)
+             return 0;
+@@ -779,7 +779,7 @@
+     } else if(TIMER_EXPIRED(RECV_TIMEOUT)) {
+         if(error) {
+             g_set_error(error, XFCE_MAILWATCH_ERROR,
+-                        XFCE_MAILWATCH_ERROR_FAILED, strerror(ETIMEDOUT));
++                        XFCE_MAILWATCH_ERROR_FAILED, "%s", strerror(ETIMEDOUT));
+         }
+         return -1;
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xfce4-mailwatch-plugin.git/commitdiff/d187ea70019c87a124bd99486224ad8ac328820d



More information about the pld-cvs-commit mailing list