Skip to content

Commit c1c5b07

Browse files
author
sebastian-carpenter
committed
fixed oss-fuzz warnings
1 parent 9fdcd2e commit c1c5b07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/internal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11213,6 +11213,7 @@ static WC_INLINE int GrowOutputBuffer(WOLFSSL* ssl, int size)
1121311213
return BUFFER_E;
1121411214
#endif
1121511215
tmp = (byte*)XMALLOC(newSz, ssl->heap, DYNAMIC_TYPE_OUT_BUFFER);
11216+
XMEMSET(tmp, 0, newSz);
1121611217
newSz -= align;
1121711218
WOLFSSL_MSG("growing output buffer");
1121811219

@@ -23425,6 +23426,7 @@ static int SSL_hmac(WOLFSSL* ssl, byte* digest, const byte* in, word32 sz,
2342523426
#endif
2342623427

2342723428
XMEMSET(seq, 0, SEQ_SZ);
23429+
XMEMSET(result, 0, WC_MAX_DIGEST_SIZE);
2342823430
conLen[0] = (byte)content;
2342923431
c16toa((word16)sz, &conLen[ENUM_LEN]);
2343023432
WriteSEQ(ssl, epochOrder, seq);

0 commit comments

Comments
 (0)