Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5541036
)
Added a paranoid length check.
author
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 23:17:30 +0000
(23:17 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 23:17:30 +0000
(23:17 +0000)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
7e4eef5
..
e8043c5
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1228,8
+1228,11
@@
struct file_list *send_file_list(int f, int argc, char *argv[])
}
}
- if (fn != fbuf)
+ if (fn != fbuf) {
+ if (len >= MAXPATHLEN)
+ overflow_exit("send_file_list");
memmove(fbuf, fn, len + 1);
+ }
if (implied_dirs && (p=strrchr(fbuf,'/')) && p != fbuf) {
/* Send the implied directories at the start of the