[SCM] The rsync repository. - branch master updated
Rsync CVS commit messages
rsync-cvs at lists.samba.org
Sun Oct 8 00:54:54 UTC 2017
The branch, master has been updated
via 3fb1634 Fix possible buffer overrun for some large name_len values. Fixes bug 12568.
from 881addc Add "daemon chroot|uid|gid" parameters.
https://git.samba.org/?p=rsync.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 3fb1634f21fdad145eb30d9387e7f8d48f1f7692
Author: Wayne Davison <wayned at samba.org>
Date: Sat Oct 7 17:54:03 2017 -0700
Fix possible buffer overrun for some large name_len values.
Fixes bug 12568.
-----------------------------------------------------------------------
Summary of changes:
xattrs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Changeset truncated at 500 lines:
diff --git a/xattrs.c b/xattrs.c
index 75b1c20..68305d7 100644
--- a/xattrs.c
+++ b/xattrs.c
@@ -817,7 +817,7 @@ void receive_xattr(int f, struct file_struct *file)
size_t dget_len = datum_len > MAX_FULL_DATUM ? 1 + MAX_DIGEST_LEN : datum_len;
size_t extra_len = MIGHT_NEED_RPRE ? RPRE_LEN : 0;
if ((dget_len + extra_len < dget_len)
- || (dget_len + extra_len + name_len < dget_len))
+ || (dget_len + extra_len + name_len < dget_len + extra_len))
overflow_exit("receive_xattr");
ptr = new_array(char, dget_len + extra_len + name_len);
if (!ptr)
--
The rsync repository.
More information about the rsync-cvs
mailing list