Commit deee574b authored by Wayne Davison's avatar Wayne Davison

Added a paranoid length check.

parent 55410368
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment