search for: bigpathbuflen

Displaying 3 results from an estimated 3 matches for "bigpathbuflen".

2008 Jan 31
1
DO NOT REPLY [Bug 5235] New: buffer overflow in receive_file_entry
...c) static struct file_struct *receive_file_entry(struct file_list *flist, unsigned short flags, int f) I changed the following lines: static char lastname[MAXPATHLEN], *lastdir; char thisname[MAXPATHLEN]; if (l2 >= MAXPATHLEN - l1) { to: static char lastname[BIGPATHBUFLEN], *lastdir; char thisname[BIGPATHBUFLEN]; if (l2 >= BIGPATHBUFLEN - l1) { I haven't done full debugged this, but it compiles and runs, and does what I want so far. The cause for this, was very long file names. -- Configure bugmail: https://bugzilla.samba.org/userprefs...
2007 Nov 12
3
DO NOT REPLY [Bug 5075] New: Syncing with --iconv may yield protocol error
...this, mplex_write needs to convert the message data before sending its length. Here is a possible rewrite: /* Write an message to a multiplexed stream. If this fails, rsync exits. */ static void mplex_write(int fd, enum msgcode code, const char *buf, size_t len, int convert) { char buffer[BIGPATHBUFLEN]; /* Oversized for use by iconv code. */ size_t n = len; #ifdef ICONV_OPTION if (convert && ic_send == (iconv_t)-1) #endif convert = 0; #ifdef ICONV_OPTION /* We need to convert buf before doing anything else so that we * can include the (c...
2006 Mar 31
3
DO NOT REPLY [Bug 3649] New: buffer overflow in receive_file_entry
https://bugzilla.samba.org/show_bug.cgi?id=3649 Summary: buffer overflow in receive_file_entry Product: rsync Version: 2.6.0 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: sambesselink@planet.nl