mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:27:30 +03:00
ftp: fix the 213 scanner memchr buffer limit argument
Reported-by: Joshua Rogers Closes #18867
This commit is contained in:
parent
2f3cf17e33
commit
9e3c35a88e
1 changed files with 1 additions and 1 deletions
|
|
@ -2319,7 +2319,7 @@ static CURLcode ftp_state_size_resp(struct Curl_easy *data,
|
|||
for all the digits at the end of the response and parse only those as a
|
||||
number. */
|
||||
char *start = &buf[4];
|
||||
const char *fdigit = memchr(start, '\r', len);
|
||||
const char *fdigit = memchr(start, '\r', len - 4);
|
||||
if(fdigit) {
|
||||
fdigit--;
|
||||
if(*fdigit == '\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue