diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-13 06:16:51 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-13 06:16:51 +0000 |
commit | f63085f50c1e8c086d6c4007a9ec68fa66267411 (patch) | |
tree | e82bccbd49f5946998001ef9f2ccce213f3d713d /MdeModulePkg | |
parent | c56b65665de7a665e29107ee9c377c1e2e84d343 (diff) | |
download | edk2-f63085f50c1e8c086d6c4007a9ec68fa66267411.zip edk2-f63085f50c1e8c086d6c4007a9ec68fa66267411.tar.gz edk2-f63085f50c1e8c086d6c4007a9ec68fa66267411.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c index 76c719a..a32b6d6 100644 --- a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c +++ b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c @@ -541,6 +541,8 @@ GetCapsuleInfo ( UINTN Count;
UINTN Size;
+ ASSERT (Desc != NULL);
+
Count = 0;
Size = 0;
diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index 596e8b2..80ccb19 100644 --- a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c +++ b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c @@ -973,6 +973,7 @@ SmbiosCreateTable ( //
// Assemble the tables
//
+ ASSERT (EntryPointStructure->TableAddress != 0);
BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
CurrentSmbiosEntry = NULL;
do {
|