mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #8544 from philljj/coverity_test_md5
coverity: pacify test_md5 uninitialized scalar variable warning.pull/8575/head
commit
beac9cb8b8
|
@ -479,8 +479,9 @@ do { \
|
||||||
\
|
\
|
||||||
XMEMSET(data, 0xa5, sizeof(data)); \
|
XMEMSET(data, 0xa5, sizeof(data)); \
|
||||||
\
|
\
|
||||||
ExpectIntEQ(wc_Init##name(&src), 0); \
|
XMEMSET(&src, 0, sizeof(src)); \
|
||||||
XMEMSET(&dst, 0, sizeof(dst)); \
|
XMEMSET(&dst, 0, sizeof(dst)); \
|
||||||
|
ExpectIntEQ(wc_Init##name(&src), 0); \
|
||||||
\
|
\
|
||||||
/* Tests bad params. */ \
|
/* Tests bad params. */ \
|
||||||
ExpectIntEQ(wc_##name##Copy(NULL, NULL), WC_NO_ERR_TRACE(BAD_FUNC_ARG)); \
|
ExpectIntEQ(wc_##name##Copy(NULL, NULL), WC_NO_ERR_TRACE(BAD_FUNC_ARG)); \
|
||||||
|
@ -614,6 +615,7 @@ do { \
|
||||||
const char* emptyHash = emptyHashStr; \
|
const char* emptyHash = emptyHashStr; \
|
||||||
const char* abcHash = abcHashStr; \
|
const char* abcHash = abcHashStr; \
|
||||||
\
|
\
|
||||||
|
XMEMSET(&dgst, 0, sizeof(dgst)); \
|
||||||
ExpectIntEQ(wc_Init##name(&dgst), 0); \
|
ExpectIntEQ(wc_Init##name(&dgst), 0); \
|
||||||
\
|
\
|
||||||
ExpectIntEQ(wc_##name##GetHash(NULL, NULL), \
|
ExpectIntEQ(wc_##name##GetHash(NULL, NULL), \
|
||||||
|
@ -768,6 +770,7 @@ do { \
|
||||||
type dgst_copy; \
|
type dgst_copy; \
|
||||||
word32 flags; \
|
word32 flags; \
|
||||||
\
|
\
|
||||||
|
XMEMSET(&dgst, 0, sizeof(dgst)); \
|
||||||
XMEMSET(&dgst_copy, 0, sizeof(dgst_copy)); \
|
XMEMSET(&dgst_copy, 0, sizeof(dgst_copy)); \
|
||||||
ExpectIntEQ(wc_Init##name(&dgst), 0); \
|
ExpectIntEQ(wc_Init##name(&dgst), 0); \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in New Issue