From: Kvarec Lezki Date: Thu, 2 Feb 2023 11:56:01 +0000 (+0500) Subject: http_aws_sigv4: remove typecasts from HMAC_SHA256 macro X-Git-Tag: curl-7_88_0~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97f7f668d60ad1df640773f24539bcd36a344317;p=thirdparty%2Fcurl.git http_aws_sigv4: remove typecasts from HMAC_SHA256 macro V220: Suspicious sequence of types castings: memsize -> 32-bit integer -> memsize. https://pvs-studio.com/en/docs/warnings/v220/ Closes #10400 --- diff --git a/lib/http_aws_sigv4.c b/lib/http_aws_sigv4.c index 63dc189133..f8ce1695e8 100644 --- a/lib/http_aws_sigv4.c +++ b/lib/http_aws_sigv4.c @@ -48,9 +48,9 @@ do { \ ret = Curl_hmacit(Curl_HMAC_SHA256, \ (unsigned char *)k, \ - (unsigned int)kl, \ + kl, \ (unsigned char *)d, \ - (unsigned int)dl, o); \ + dl, o); \ if(ret) { \ goto fail; \ } \