rpms/rsync/F-12 rsync-3.0.7-buf-overflow.patch,NONE,1.1

Jan Zeleny jzeleny at fedoraproject.org
Fri Jan 22 22:11:12 UTC 2010


Author: jzeleny

Update of /cvs/extras/rpms/rsync/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21428

Added Files:
	rsync-3.0.7-buf-overflow.patch 
Log Message:
fixed buffer overflow when using long file names (#557916)

rsync-3.0.7-buf-overflow.patch:
 flist.c |    4 ++++
 1 file changed, 4 insertions(+)

--- NEW FILE rsync-3.0.7-buf-overflow.patch ---
--- rsync-3.0.7/flist.c.orig	2010-01-22 22:39:40.000000000 +0100
+++ rsync-3.0.7/flist.c	2010-01-22 22:45:27.618262042 +0100
@@ -3025,6 +3025,10 @@ char *f_name(const struct file_struct *f
 
 	if (f->dirname) {
 		int len = strlen(f->dirname);
+		if (len >= MAXPATHLEN) {
+			rprintf(FWARNING,"Path too long!\n");
+			return NULL;
+		}
 		memcpy(fbuf, f->dirname, len);
 		fbuf[len] = '/';
 		strlcpy(fbuf + len + 1, f->basename, MAXPATHLEN - (len + 1));



More information about the scm-commits mailing list