mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-11 02:48:35 -04:00
Added a paranoid length check.
This commit is contained in:
5
flist.c
5
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
|
||||
|
||||
Reference in New Issue
Block a user