Skip to content

Commit b5a914b

Browse files
authored
Merge pull request #9239 from SKlimaRA/SKlimaRA/zd20556
fixes zd20556.
2 parents e168714 + 1cfafc2 commit b5a914b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/internal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11180,8 +11180,10 @@ static WC_INLINE int GrowOutputBuffer(WOLFSSL* ssl, int size)
1118011180
return BUFFER_E;
1118111181
if (! WC_SAFE_SUM_WORD32(newSz, (word32)size, newSz))
1118211182
return BUFFER_E;
11183+
#if WOLFSSL_GENERAL_ALIGNMENT > 0
1118311184
if (! WC_SAFE_SUM_WORD32(newSz, align, newSz))
1118411185
return BUFFER_E;
11186+
#endif
1118511187
tmp = (byte*)XMALLOC(newSz, ssl->heap, DYNAMIC_TYPE_OUT_BUFFER);
1118611188
newSz -= align;
1118711189
WOLFSSL_MSG("growing output buffer");

wolfcrypt/src/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ void wolfSSL_SetDebugMemoryCb(DebugMemoryCb cb)
551551
wc_Memory** list is the list that new buckets are prepended to
552552
*/
553553
static int wc_create_memory_buckets(byte* buffer, word32 bufSz,
554-
word32 buckSz, byte buckNum, wc_Memory** list) {
554+
word32 buckSz, word32 buckNum, wc_Memory** list) {
555555
byte* pt = buffer;
556556
int ret = 0;
557557
byte memSz = (byte)sizeof(wc_Memory);

0 commit comments

Comments
 (0)