mirror of https://github.com/wolfSSL/wolfTPM.git
F-11929 - Zeroize the append-only NV replay buffer before freeing
parent
ae3581982e
commit
b12c95e64a
|
|
@ -1759,6 +1759,7 @@ static int FwNvInitAppendOnly(FWTPM_CTX* ctx, byte** valueBufP,
|
|||
rc = TPM_RC_MEMORY;
|
||||
break;
|
||||
}
|
||||
TPM2_ForceZero(valueBuf, valueBufSz);
|
||||
XFREE(valueBuf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
valueBuf = newBuf;
|
||||
valueBufSz = len;
|
||||
|
|
|
|||
Loading…
Reference in New Issue