Displaying 2 results from an estimated 2 matches for "might_need_rpre".
2017 Oct 31
0
[Bug 13113] New: receive_xattr heap overflow when prepending RSYNC_PREFIX
...Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: jeriko.one at gmx.us
QA Contact: rsync-qa at samba.org
Created attachment 13745
--> https://bugzilla.samba.org/attachment.cgi?id=13745&action=edit
change MIGHT_NEED_RPRE to am_root <= 0
$ ./rsync -v
rsync version 3.1.3dev protocol version 31
I've built with HAVE_LINUX_XATTRS
I'm running rsyncd as a non root user.
the args I'm sending rsyncd when connecting are
{"--server", "--filter", "+x jk", "-X", &q...
2017 Feb 07
2
[Bug 12568] New: Integer overflow still affects xattrs.c
...follows.
684 for (num = 1; num <= count; num++) {
685 char *ptr, *name;
686 rsync_xa *rxa;
687 size_t name_len = read_varint(f);
688 size_t datum_len = read_varint(f);
689 size_t dget_len = datum_len > MAX_FULL_DATUM ? 1 + MAX_DIGEST_LEN :
datum_len;
690 size_t extra_len = MIGHT_NEED_RPRE ? RPRE_LEN : 0;
691 if ((dget_len + extra_len < dget_len)
692 || (dget_len + extra_len + name_len < dget_len))
693 overflow_exit("receive_xattr");
694 ptr = new_array(char, dget_len + extra_len + name_len);
695 if (!ptr)
696 out_of_memory("receive_xat...