mirror of
https://github.com/curl/curl.git
synced 2026-07-31 11:38:06 +03:00
curl_setup: use SIZE_MAX instead of SIZE_T_MAX
As SIZE_MAX exists in C99 Assisted-by: Stefan Eissing Assisted-by: Jay Satiro Ref: #18406 Closes #18426
This commit is contained in:
parent
7ceb9c54aa
commit
93f333c18f
13 changed files with 24 additions and 24 deletions
|
|
@ -130,7 +130,7 @@ static CURLcode glob_set(struct URLGlob *glob, const char **patternp,
|
|||
if(pat->c.set.elem) {
|
||||
char **arr;
|
||||
|
||||
if(pat->c.set.size >= (curl_off_t)(SIZE_T_MAX/(sizeof(char *))))
|
||||
if(pat->c.set.size >= (curl_off_t)(SIZE_MAX/(sizeof(char *))))
|
||||
return globerror(glob, "range overflow", 0, CURLE_URL_MALFORMAT);
|
||||
|
||||
arr = realloc(pat->c.set.elem, (size_t)(pat->c.set.size + 1) *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue