mirror of https://github.com/acidanthera/audk.git
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:
parent
a522ad7c19
commit
a8bcbf9c4d
|
@ -1435,6 +1435,8 @@ TcgGetNextTcgUid(
|
|||
return TcgResultFailure;
|
||||
}
|
||||
|
||||
ASSERT (ByteSeq != NULL);
|
||||
|
||||
CopyMem(Uid, ByteSeq, sizeof(TCG_UID));
|
||||
|
||||
return TcgResultSuccess;
|
||||
|
|
Loading…
Reference in New Issue