[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Wed Apr 22 11:31:35 MDT 2015


The branch, master has been updated
       via  3ea74eb rsync: fix of-by-one in check of snprintf() result. Fixes bug 11229.
      from  962f8b9 Complain if an inc-recursive path is not right for its dir. This ensures that a malicious sender can't use a just-sent symlink as a trasnfer path.

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3ea74eb3880b4fda95fced4f605bb96f19dd4b0f
Author: Stefan Behrens <sbehrens at giantdisaster.de>
Date:   Tue Apr 21 13:50:38 2015 +0200

    rsync: fix of-by-one in check of snprintf() result.
    Fixes bug 11229.

-----------------------------------------------------------------------

Summary of changes:
 io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/io.c b/io.c
index a868fa9..01c6db1 100644
--- a/io.c
+++ b/io.c
@@ -2283,7 +2283,7 @@ void io_printf(int fd, const char *format, ...)
 	if (len < 0)
 		exit_cleanup(RERR_PROTOCOL);
 
-	if (len > (int)sizeof buf) {
+	if (len >= (int)sizeof buf) {
 		rprintf(FERROR, "io_printf() was too long for the buffer.\n");
 		exit_cleanup(RERR_PROTOCOL);
 	}


-- 
The rsync repository.


More information about the rsync-cvs mailing list