diff --git a/SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c b/SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c index e333b55352..76b25a3775 100644 --- a/SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c +++ b/SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c @@ -1435,6 +1435,8 @@ TcgGetNextTcgUid( return TcgResultFailure; } + ASSERT (ByteSeq != NULL); + CopyMem(Uid, ByteSeq, sizeof(TCG_UID)); return TcgResultSuccess;