Merge pull request #7763 from douzzer/20240718-cppcheck-2v14v2-suppressions

20240718-cppcheck-2v14v2-suppressions
This commit is contained in:
Sean Parkinson
2024-07-19 10:03:04 +10:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@ -1413,7 +1413,7 @@ int wolfSSL_GetSessionFromCache(WOLFSSL* ssl, WOLFSSL_SESSION* output)
output->ticketLen = 0; output->ticketLen = 0;
} }
if (error == WOLFSSL_SUCCESS) { if (error == WOLFSSL_SUCCESS) {
XMEMCPY(output->ticket, tmpTicket, output->ticketLen); XMEMCPY(output->ticket, tmpTicket, output->ticketLen); /* cppcheck-suppress uninitvar */
} }
} }
#ifdef WOLFSSL_SMALL_STACK #ifdef WOLFSSL_SMALL_STACK

View File

@ -1056,7 +1056,7 @@ static int Hmac_UpdateFinal_CT(Hmac* hmac, byte* digest, const byte* in,
hashBlock[j] = b; hashBlock[j] = b;
} }
ret = Hmac_HashUpdate(hmac, hashBlock, (word32)blockSz); ret = Hmac_HashUpdate(hmac, hashBlock, (word32)blockSz); /* cppcheck-suppress uninitvar */
if (ret != 0) if (ret != 0)
return ret; return ret;
ret = Hmac_HashFinalRaw(hmac, hashBlock); ret = Hmac_HashFinalRaw(hmac, hashBlock);

View File

@ -3550,7 +3550,7 @@ char* wolfSSL_X509_get_name_oneline(WOLFSSL_X509_NAME* name, char* in, int sz)
} }
} }
XMEMCPY(in, tmpBuf, totalLen); XMEMCPY(in, tmpBuf, totalLen); /* cppcheck-suppress uninitvar */
in[totalLen] = '\0'; in[totalLen] = '\0';
return in; return in;

View File

@ -123,7 +123,7 @@ void wc_Md2Final(Md2* md2, byte* hash)
for (i = 0; i < padLen; i++) for (i = 0; i < padLen; i++)
padding[i] = (byte)padLen; padding[i] = (byte)padLen;
wc_Md2Update(md2, padding, padLen); wc_Md2Update(md2, padding, padLen); /* cppcheck-suppress uninitvar */
wc_Md2Update(md2, md2->C, MD2_BLOCK_SIZE); wc_Md2Update(md2, md2->C, MD2_BLOCK_SIZE);
XMEMCPY(hash, md2->X, MD2_DIGEST_SIZE); XMEMCPY(hash, md2->X, MD2_DIGEST_SIZE);