From: vanjeff Date: Mon, 22 Apr 2013 08:58:27 +0000 (+0000) Subject: Add security check. X-Git-Tag: edk2-stable201903~12581 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=8cbad981eecfafd38278f358c2ceede61d9422de Add security check. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14306 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c index 13745c5aac..c253fa59a3 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c +++ b/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c @@ -281,6 +281,7 @@ DebugAgentCallbackMemoryDiscoveredPpi ( // Update Mailbox Location pointer in GUIDed HOB and IDT entry with new one // MailboxLocationInHob = GetMailboxLocationFromHob (); + ASSERT (MailboxLocationInHob != NULL); *MailboxLocationInHob = (UINT64)(UINTN)NewMailbox; SetLocationSavedMailboxPointerInIdtEntry (MailboxLocationInHob); //