mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:53:32 +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
|
|
@ -74,8 +74,8 @@ CURLcode Curl_auth_create_plain_message(const char *authzid,
|
|||
plen = strlen(passwd);
|
||||
|
||||
/* Compute binary message length. Check for overflows. */
|
||||
if((zlen > SIZE_T_MAX/4) || (clen > SIZE_T_MAX/4) ||
|
||||
(plen > (SIZE_T_MAX/2 - 2)))
|
||||
if((zlen > SIZE_MAX/4) || (clen > SIZE_MAX/4) ||
|
||||
(plen > (SIZE_MAX/2 - 2)))
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
plainlen = zlen + clen + plen + 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue