mirror of
https://github.com/stefanberger/libtpms
synced 2025-12-27 23:29:13 +00:00
tpm2: Add an assert(profileJSON) since it must never be NULL
When profileJSON is passed to String_Marshal it must never be NULL. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
ab3da80dec
commit
6adb99a42c
@ -5109,6 +5109,7 @@ PERSISTENT_ALL_Marshal(BYTE **buffer, INT32 *size)
|
||||
PERSISTENT_ALL_MAGIC, blob_version);
|
||||
if (blob_version >= 4) {
|
||||
profileJSON = RuntimeProfileGetJSON(RuntimeProfile);
|
||||
assert(profileJSON);
|
||||
written += String_Marshal(profileJSON, buffer, size); // since v4
|
||||
}
|
||||
written += PACompileConstants_Marshal(buffer, size);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user