* src/ftp-ls.c (ftp_parse_winnt_ls): Fix heap-buffer-overflow

Fixes OSS-Fuzz issue #7931.
This is a long standing bug affecting all versions <= 1.19.4.
This commit is contained in:
Tim Rühsen 2018-04-22 12:45:43 +02:00
parent 96c64a859d
commit b0f802c46c

View File

@ -458,6 +458,7 @@ ftp_parse_winnt_ls (FILE *fp)
else if (year >= 1900)
{
year -= 1900;
if (len < 42) continue;
filename += 2;
}
/* Now it is possible to determine the position of the first symbol in