Ticket #2018 (new defect) — at Version 1
FTPFS: strcpy() is used for overlaping strings
Reported by: | andrew_b | Owned by: | andrew_b |
---|---|---|---|
Priority: | major | Milestone: | 4.7.1 |
Component: | mc-vfs | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description (last modified by andrew_b) (diff)
There is a following code in lib/vfs/mc-vfs/ftpfs.c file:
220 /* replace first occurance of ":/" with ":" */ 221 if ((p = strchr (ret, ':')) && *(p + 1) == '/') 222 strcpy (p + 1, p + 2);
But strcpy() must not be used for overlaping objects.
Change History
Note: See
TracTickets for help on using
tickets.
Created 2018_fptfs_strcpy branch. Parent branch is master.
changeset:1fa19b8f818dd11b5e0df5187e26d911dcb3bef7