mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:53:33 +03:00
lib: accept larger input to md5/hmac/sha256/sha512 functions
Avoid unchecked data conversions from size_t to unsigned int. Reported-by: James Fuller Closes #21174
This commit is contained in:
parent
1570091f10
commit
dd7fcd581f
7 changed files with 41 additions and 20 deletions
|
|
@ -54,7 +54,7 @@ extern const struct MD5_params Curl_DIGEST_MD5;
|
|||
extern const struct HMAC_params Curl_HMAC_MD5;
|
||||
|
||||
CURLcode Curl_md5it(unsigned char *output, const unsigned char *input,
|
||||
const size_t len);
|
||||
size_t len);
|
||||
|
||||
struct MD5_context *Curl_MD5_init(const struct MD5_params *md5params);
|
||||
CURLcode Curl_MD5_update(struct MD5_context *context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue