mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Add NULl check for pointer.
Signed-off-by: li-elvin Reviewed-by: lgao4, lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12333 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c56b65665d
commit
f63085f50c
@ -541,6 +541,8 @@ GetCapsuleInfo (
|
|||||||
UINTN Count;
|
UINTN Count;
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
|
|
||||||
|
ASSERT (Desc != NULL);
|
||||||
|
|
||||||
Count = 0;
|
Count = 0;
|
||||||
Size = 0;
|
Size = 0;
|
||||||
|
|
||||||
|
@ -973,6 +973,7 @@ SmbiosCreateTable (
|
|||||||
//
|
//
|
||||||
// Assemble the tables
|
// Assemble the tables
|
||||||
//
|
//
|
||||||
|
ASSERT (EntryPointStructure->TableAddress != 0);
|
||||||
BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
|
BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
|
||||||
CurrentSmbiosEntry = NULL;
|
CurrentSmbiosEntry = NULL;
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user