mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-12 21:01:19 +00:00
Fix regression from 'Recalculate the entrysize in front of ...'
The patch 'Recalculate the entrysize in front of every USER_NVRAM blob' did not properly account for the TPM_HANDLE when recalculating the entry size of an OBJECT in NVRAM. As a consequence all OBJECTS and NVRAM indices following the first OBJECT got lost. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
a5a359f4ca
commit
1d918e5426
@ -4370,7 +4370,7 @@ USER_NVRAM_Unmarshal(BYTE **buffer, INT32 *size)
|
||||
NvWrite(entryRef + o + offset, sizeof(obj), &obj);
|
||||
offset += sizeof(obj);
|
||||
}
|
||||
entrysize = sizeof(UINT32) + sizeof(obj);
|
||||
entrysize = sizeof(UINT32) + sizeof(TPM_HANDLE) + sizeof(obj);
|
||||
break;
|
||||
default:
|
||||
TPMLIB_LogTPM2Error("USER_NVRAM: "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user