mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -1435,6 +1435,8 @@ TcgGetNextTcgUid(
|
|||
return TcgResultFailure;
|
||||
}
|
||||
|
||||
ASSERT (ByteSeq != NULL);
|
||||
|
||||
CopyMem(Uid, ByteSeq, sizeof(TCG_UID));
|
||||
|
||||
return TcgResultSuccess;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue