Address FP warning from VS

This commit is contained in:
Eric Blankenhorn
2026-02-27 10:57:58 -06:00
parent 1cdb2974a9
commit cbe8dd5f11
+1 -1
View File
@@ -1298,7 +1298,7 @@ int TLS_hmac(WOLFSSL* ssl, byte* digest, const byte* in, word32 sz, int padSz,
/* Pre-compute sz + hashSz + padSz + 1 with overflow checking.
* Used by fuzzer callback and Hmac_UpdateFinal* in the verify path. */
if (verify && padSz >= 0) {
word32 hmacSz;
word32 hmacSz = 0;
if (!WC_SAFE_SUM_WORD32(sz, hashSz, hmacSz) ||
!WC_SAFE_SUM_WORD32(hmacSz, (word32)padSz, hmacSz) ||
!WC_SAFE_SUM_WORD32(hmacSz, 1, hmacSz)) {