The Samba-Bugzilla – Attachment 5215 Details for
Bug 7057
Buffer overflow when sending a file with long name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding string boundary check
rsync-3.0.7-buf-overflow.patch (text/plain), 455 bytes, created by
Jan Zeleny
on 2010-01-22 16:06:31 UTC
(
hide
)
Description:
Patch adding string boundary check
Filename:
MIME Type:
Creator:
Jan Zeleny
Created:
2010-01-22 16:06:31 UTC
Size:
455 bytes
patch
obsolete
>--- 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));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7057
:
5215
|
5529
|
5530
|
5551
|
5553