mirror of
https://github.com/mirror/wget.git
synced 2025-03-04 23:00:22 +08:00
* 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:
parent
96c64a859d
commit
b0f802c46c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user