mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-27 20:11:06 +00:00
tpm2: Fix calculation of array_size
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
3c09c6a4da
commit
f20c4d5da5
@ -4051,7 +4051,7 @@ USER_NVRAM_Unmarshal(BYTE **buffer, INT32 *size)
|
||||
OBJECT obj;
|
||||
UINT32 datasize;
|
||||
UINT64 sourceside_size;
|
||||
UINT64 array_size = NV_USER_DYNAMIC - NV_USER_DYNAMIC_END;
|
||||
UINT64 array_size = NV_USER_DYNAMIC_END - NV_USER_DYNAMIC;
|
||||
|
||||
if (rc == TPM_RC_SUCCESS) {
|
||||
rc = NV_HEADER_Unmarshal(&hdr, buffer, size,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user