Skip to content

Commit dcbb553

Browse files
committed
fix SE050 hash msg buffer leak
1 parent 079e7c5 commit dcbb553

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfcrypt/src/port/nxp/se050_port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ int se050_hash_final(SE050_HASH_Context* se050Ctx, byte* hash, size_t digestLen,
344344

345345
if (status == kStatus_SSS_Success) {
346346
/* reset state */
347+
XFREE(se050Ctx->msg, se050Ctx->heap, DYNAMIC_TYPE_TMP_BUFFER);
347348
ret = se050_hash_init(se050Ctx, se050Ctx->heap);
348349
} else {
349350
ret = WC_HW_E;

0 commit comments

Comments
 (0)