rpms/rsync/F-7 rsync-3.0.1-xattr-alloc.diff, NONE, 1.1 rsync.spec, 1.43, 1.44

Simo Sorce (simo) fedora-extras-commits at redhat.com
Wed Apr 9 13:54:25 UTC 2008


Author: simo

Update of /cvs/pkgs/rpms/rsync/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9893

Modified Files:
	rsync.spec 
Added Files:
	rsync-3.0.1-xattr-alloc.diff 
Log Message:
* Tue Apr 8 2008 Simo Sorce <ssorce at redhat.com> 2.6.9-4.fc7
- Security release: http://rsync.samba.org/security.html#s3_0_2


rsync-3.0.1-xattr-alloc.diff:

--- NEW FILE rsync-3.0.1-xattr-alloc.diff ---
--- a/util.c
+++ b/util.c
@@ -1329,7 +1329,7 @@ void *_new_array(unsigned long num, unsigned int size, int use_calloc)
 	return use_calloc ? calloc(num, size) : malloc(num * size);
 }
 
-void *_realloc_array(void *ptr, unsigned int size, unsigned long num)
+void *_realloc_array(void *ptr, unsigned int size, size_t num)
 {
 	if (num >= MALLOC_MAX/size)
 		return NULL;
@@ -1550,7 +1550,10 @@ void *expand_item_list(item_list *lp, size_t item_size,
 			new_size += incr;
 		else
 			new_size *= 2;
-		new_ptr = realloc_array(lp->items, char, new_size * item_size);
+		if (new_size < lp->malloced)
+			overflow_exit("expand_item_list");
+		/* Using _realloc_array() lets us pass the size, not a type. */
+		new_ptr = _realloc_array(lp->items, item_size, new_size);
 		if (verbose >= 4) {
 			rprintf(FINFO, "[%s] expand %s to %.0f bytes, did%s move\n",
 				who_am_i(), desc, (double)new_size * item_size,


Index: rsync.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rsync/F-7/rsync.spec,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- rsync.spec	5 Sep 2007 14:04:07 -0000	1.43
+++ rsync.spec	9 Apr 2008 13:53:48 -0000	1.44
@@ -1,7 +1,7 @@
 Summary: A program for synchronizing files over a network.
 Name: rsync
 Version: 2.6.9
-Release: 3%{?dist}
+Release: 4%{?dist}
 Group: Applications/Internet
 # TAG: for pre versions use
 #Source:	ftp://rsync.samba.org/pub/rsync/rsync-%{version}pre1.tar.gz
@@ -9,6 +9,7 @@
 Source1: rsync.xinetd
 Patch1: rsync-2.6.9-acl-xattr-delete-bug.patch
 Patch2: rsync-2.6.9-hlink-segv.patch
+Patch3: rsync-3.0.1-xattr-alloc.diff
 BuildRequires: libacl-devel, libattr-devel, autoconf, make, gcc
 Prefix: %{_prefix}
 BuildRoot: /var/tmp/%{name}-root
@@ -31,6 +32,7 @@
 patch -p1 < patches/xattrs.diff
 %patch1 -p1 -b .acl_xattrs_bug
 %patch2 -p1 -b .hlink_segv
+%patch3 -p1 -b .xattr-alloc
 
 %build
 rm -fr autom4te.cache
@@ -60,6 +62,9 @@
 %{_mandir}/man5/rsyncd.conf.5*
 
 %changelog
+* Tue Apr 8 2008 Simo Sorce <ssorce at redhat.com> 2.6.9-4.fc7
+- Security release: http://rsync.samba.org/security.html#s3_0_2
+
 * Wed Sep 5 2007 Simo Sorce <ssorce at redhat.com> 2.6.9-3.fc7
 - Add patch to fix crash bug with hardlinks and ACLs patches
 




More information about the fedora-extras-commits mailing list