[packages/librsync] - fix format string error - rel 6

baggins baggins at pld-linux.org
Sat Jul 25 11:21:09 CEST 2015


commit 07f536aed1717fc9431989c13fbd97d6fd2ea2a0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 25 11:20:49 2015 +0200

    - fix format string error
    - rel 6

 format-security.patch | 11 +++++++++++
 librsync.spec         |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/librsync.spec b/librsync.spec
index d660c9b..0b366ed 100644
--- a/librsync.spec
+++ b/librsync.spec
@@ -2,13 +2,14 @@ Summary:	Rsync libraries
 Summary(pl.UTF-8):	Biblioteki rsync
 Name:		librsync
 Version:	0.9.7
-Release:	5
+Release:	6
 License:	LGPL
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/librsync/%{name}-%{version}.tar.gz
 # Source0-md5:	24cdb6b78f45e0e83766903fd4f6bc84
 Patch0:		%{name}-link.patch
 Patch1:		%{name}-4Gigbug.patch
+Patch2:		format-security.patch
 URL:		http://librsync.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -70,6 +71,7 @@ Statyczna biblioteka librsync.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..c0b7a64
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- librsync-0.9.7/buf.c~	2004-02-08 00:17:57.000000000 +0100
++++ librsync-0.9.7/buf.c	2015-07-25 11:19:24.237688098 +0200
+@@ -213,7 +213,7 @@
+ 
+     got = fread(*buf, 1, *len, f);
+     if (got == -1) {
+-        rs_error(strerror(errno));
++        rs_error("%s", strerror(errno));
+         return RS_IO_ERROR;
+     } else if (got == 0) {
+         rs_error("unexpected eof on fd%d", fileno(f));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/librsync.git/commitdiff/07f536aed1717fc9431989c13fbd97d6fd2ea2a0



More information about the pld-cvs-commit mailing list