mirror of
https://github.com/curl/curl.git
synced 2026-04-17 16:31:40 +03:00
ftp: avoid two unsigned int overflows in FTP listing parser
Curl_ftp_parselist: avoid unsigned integer overflows The overflow has no real world impact, just avoid it for "best practice". Closes #3225
This commit is contained in:
parent
fcf3f13368
commit
c05d77ee7d
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
|
|||
parser->state.UNIX.main = PL_UNIX_FILETYPE;
|
||||
/* start FSM again not considering size of directory */
|
||||
finfo->b_used = 0;
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case PL_UNIX_TOTALSIZE_READING:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue