mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:03:31 +03:00
strtoofft: reduce integer overflow risks globally
... make sure we bail out on overflows. Reported-by: Brian Carpenter Closes #1758
This commit is contained in:
parent
b53b4e4424
commit
ff50fe0348
13 changed files with 196 additions and 131 deletions
|
|
@ -523,8 +523,8 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||
k->httpcode);
|
||||
}
|
||||
else {
|
||||
s->cl = curlx_strtoofft(s->line_start +
|
||||
strlen("Content-Length:"), NULL, 10);
|
||||
(void)curlx_strtoofft(s->line_start +
|
||||
strlen("Content-Length:"), NULL, 10, &s->cl);
|
||||
}
|
||||
}
|
||||
else if(Curl_compareheader(s->line_start, "Connection:", "close"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue