SecurityPkg TcgStorageCoreLib: ASSERT to ensure 'ByteSeq' is not NULL

Add ASSERT to make sure 'ByteSeq' is not NULL before comsumed by
CopyMem().

Cc: Eric Dong <eric.dong@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Hao Wu 2016-11-21 14:00:44 +08:00
parent a522ad7c19
commit a8bcbf9c4d
1 changed files with 2 additions and 0 deletions

View File

@ -1435,6 +1435,8 @@ TcgGetNextTcgUid(
return TcgResultFailure;
}
ASSERT (ByteSeq != NULL);
CopyMem(Uid, ByteSeq, sizeof(TCG_UID));
return TcgResultSuccess;